How to copy multiple rows from VisualVM's CPU Sampler results? - visualvm

I identified the root cause of a performance issue in VisualVM. I need to put together a report with the data from VisualVM. However, I want to be able to copy and paste multiple rows. Using Shift+Up/Down only selects one row. If you try this in other applications like excel, multiple rows will be selected.
For example to copy and paste these three rows, I needed right click on each row, Copy->Copy Row. Cmd+C does not work because it only gives me method+class. Unfortunately have I dozens of rows to copy.
MySlowCode.slowMethod () 37,576 ms (49.1%) 82.7 ms (3%)
io.grpc.stub.ClientCalls.blockingUnaryCall () 37,576 ms (49.1%) 82.7 ms (3%)
io.grpc.stub.ClientCalls$ThreadlessExecutor.waitAndDrain () 37,494 ms (49%) 0.0 ms (0%)
Details about my environment:
VisualVM 1.4.4
MacOS 10.14.2

Copy-pasting of multiple lines is currently not supported. However you can take snapshot of collected results and you can then export it to the file. It is possible to export it as .csv, .html, .xml.

Related

Outgrew google sheets but do not have expertise in SQL. Is there an interim solution?

Our nonprofit uses google sheets to transform data. The first file has the raw data, which comes to us in a CSV. Data gets passed from one file to another with =importrange. Intermediate files transform various parts of it with lot of google sheet formulas such as =split, =vlookup, =if, =textjoin, =concatenate, etc. The final file has the data in the form that we can use to create pages in our website.
The first file has about 150 columns. The new 10M cell limit should let us get about 60k rows, but even that number freezes up, and we need to get up into the millions of rows. All of the transformer files, together, add up to about 3k columns.
We assume that the ultimate solution is to re-create it all in a SQL database, but we do not have any expertise of that type, nor the funding to hire someone.
Is there an easy way to transform a google sheet (with formulas) into
a SQL file?
Is there an easy interim solution, which we can use for a
while?

SSIS Excel Destination doesn't works

One SSIS package does the data export from 3 sources to Excel. Before exporting into excel the file, the data goes through sorting, aggregation and finally it goes before Conditional Split. I placed data viewers at every place and could see that the records are there but when the excel is exported i don't see any records.
before the export happens, previous day excel is deleted and a new excel is created from a template excel. At the end of data flow task, I see excel containing columns from template excel and no rows in it.
What is causing this issue. I have kept data viewer and I see the data as it goes by but I don't see data after the conditional split or before the conditional split happens.
Please see the pic. After the conditional split, there are 3 excel destination. One of them which you can see.

SQL 2008 R2 SSRS export to Excel

I have a SSRS report that works fine but has an issue exporting to Excel or CSV formats.
I tried exporting to excel but errors out saying it has more than 256 columns.
So I was hoping I could just export it to CSV format. But with CSV I noticed that it adds up unwanted 'textbox1', textbox2 etc and also does not display the header that I actually added. Instead it would display the actual field name as header. I figured I could edit the individual properties to show Header Names. But the textboxes in the exported sheet is still an issue.
On the other hand I was trying if I could export it to excel but limit 100 columns per sheet or rest of the columns after 256 to next sheet that would be great.
I saw few posts on google breaking by group. But in my case I do not have columns to be grouped. Only need to break first 100 columns to sheet1 and next 100 to sheet2 or the 256 columns to sheet1 and the rest to next sheet.
No luck in both ways. Could you please help with this?
Error: "Excel Rendering Extension: Number of columns exceeds the
maximum possible columns per sheet in this format; Columns Requested:
264, Max Columns: 256"
This is a very common issue when you work with SSRS 2008 R2. If your reports have columns more than 256, then it doesn't export to Excel.
Try to understand this technically. Technicality is, SSRS reports by default install 2003 office component on Report server. When your report give a call to export data into excel, then report server internally give a call to office component. And if you will see, then you will find that in office 2003, you have maximum of 256 columns in a sheet. So in any case, you cannot export more than that using your existing infrastructure.
Options:
Move to SSRS 2012 or SSRS 2014. This will also update your office component to 2007 or 2010 where you can export up to 16,384 columns.
If you cannot move to new infrastructure then you have to break-down your reports such that it never exceeds to 256 columns.
Export to other formats like PDF. But when you do so, then it disturbs the UI. So I don't see this as a very feasible solution.

sorting BIG excel data

Right so, I have been given a LOT of "consumer data" to sort, 3 excel files, each containing multiple worksheets, up to 7 worksheets, each up to 1M rows (max worksheet size in excel 2013 is just over 1 rows)
I need to pull out of these all people within a region, so have a list of post codes in this region (say 30 post code areas)
How can I achieve this most easily?
If the data was in SQL server, i'd just write a long SQL statement selecting all where postcode LIKE 'B75'% OR 'B74'% etc etc.
But in excel I can only run a "filer" on one worksheet at a time... (I think)
Is it going to be easiest to throw all the data into sql server, or have I overlooked a method?
First solution is to let Excel do the task of sorting for you. You need to add filters to columns and select Sorting options.
Other solution is to Export Data to SQL Table(s). To do this, Open SQL Management Studio, Right Click on Database to which you want to export data to and Select "From Excel File". Do this for each Excel file you have. After importing all data in Database, sort Data using SQL Query.
Second Solution is reliable but first solution is faster. You need to decide which one you should select.

Google Spreadsheet: SQL query to add more rows

If I want to use a sql query to import around 2000 rows from the original google spreadsheet to another one. I will first have to manually keep adding/increasing the number of rows first in the sheet before I attempt to import the 2000 rows.
Example sql query,
=QUERY('Experts'!A:Z,"Select A,C,M where M <=date """&text(H3,"yyyy-mm-dd")&""" and L='Yes' ")
Is there anyway for me to be able to use this query directly without first having to manually increase the number of rows to accommodate the imported data?
You do not need to manually add rows, the query function will do it for you.