profiling

WebSphere 6.1 - getting profiling information just from the console

The situation is like this, we have a very slow WebSphere 6.1 deployment, and want to get information from the console (we can't have access to anything but the console) What are the tools we have there to troubleshoot (performance issues, memory etc)? Remember, all we can have is web access to the console web interface Thanks ...

Why does the profiler show large numbers of char[] instances when I am not creating any?

I am running a NetBeans profile of a recursive operation that includes creating a class with a java.lang.String field. In the classes list, in the profile heap dump, the number of String fields corresponds to the number of classes created as expected, however there are also a similar number of char[] instances. The char arrays account fo...

Oracle DBAs: Any way to see what queries my ASP.NET app is running?

I have an ASP.NET application that uses Oracle for persistence and queries it via ADO.NET and stored procedures. I have the full version of TOAD and administrative rights to the database. Is there any way to view all queries issued by the application over the last 10 minutes? ...

nhibernate: why does nhibernate update the foreign key of my child entity?

Ok, i have two entities named WorkPostSheet and WorkPost where the WorkPostSheet contains a collection of WorkPost-items: public class WorkPostSheet { ... public virtual IEnumerable<WorkPost> WorkPosts { get; private set; } } In my integration test, i notice that nhibernate creates an update statement ...

Why do applications compiled by GCC always contain the _mcount symbol?

Libraries don't always contain the _mcount symbol, but applications do (you can verify this with gobjdump or the nm utility). I've read that _mcount is used to implement profiling, but the symbol is present even when profiling is disabled and optimization is enabled (-O2). Does it serve some other additional purpose? Update: I am on Sol...

Possible Memory Leak?

I've got a running java webapp, that I'm monitoring with visualVM. Here's the graph of the heap: The was tested with two sets of requests, one at 3:20 and the other at 4:40 aprox (they are represented in the graph as the only two peaks). My question is: does this means I have a memory leak? I'm worried about the middle part where, a...

Java heap size in JMP

I'm trying to profile a simple application in java, which basically only opens an RMI interface and waits for messages. When I open the application via TIJMP, it reports from the start: Heap: init - 0, used - 3MB, commited - 7MB, max - 643MB. Now I'm pretty sure that simply starting the program didn't push the memory requirement over 6...

Line Level Profiling for iPhone

I'm looking for a way to find out how much time is spent in each of my program's source line when running on the iPhone.Similar to what Shark can provide on the method/function level. Is this possible with the standard tools? Are there 3rd party tools that can provide this sort of granularity? It wouldn't be necessary for profiling data...

W3WP.EXE using 100% CPU - where to start?

An ASP.NET web app running on IIS6 periodically shoots the CPU up to 100%. It's the W3WP that's responsible for nearly all CPU usage during these episodes. The CPU stays pinned at 100% anywhere from a few minutes to over an hour. This is on a staging server and the site is only getting very light traffic from testers at this point. W...

Performance/profiling measurement in C

I'm doing some prototyping work in C, and I want to compare how long a program takes to complete with various small modifications. I've been using clock; from K&R: clock returns the processor time used by the program since the beginning of execution, or -1 if unavailable. This seems sensible to me, and has been giving results whic...

Profiling a ruby / ruby on rails application

Hi, I am looking to understand conceptually what all goes in profiling a ruby or ruby on rails program (e.g. memory usage, speed of request dispatching, speed of connecting with external programs like DB) and what are the best tools (at a conceptual and fundamental level) that are available Thanks ...

jmap -histo is missing a lot of memory

I have a JVM with 12 gigs of total RAM, out of which 7 GB is allocated to the old generation. There seems to be some memory leak, because almost the entire old gen is full, and will not release when I schedule a GC (the process is not doing anything else at that time). A jmap -histo dump only reveals less than 1 gigabyte worth of object...

Recommendations for a heap analysis tool for Java?

List your favorite heap analysis tools (e.g. jprofiler, jmap, ...). Let's keep it one tool per answer, with a short list of pros and cons for each tool. ...

How much memory does jProfiler need to analyze a heap dump of size X?

I have a heap size of X (= 5 giga bytes). How much should I allocate for jprofiler to efficiently analyze this heap? ...

RtlpNtMakeTemporaryKey - VerySleepy indicates that this takes a lot of time

I'm profiling some computationally intensive code of mine, and was surprised to see that the function RtlpNtMakeTemporaryKey takes up a huge chunk of time. It's module is ntdll and the source file is Unknown. Is this a call which is waiting for my slow function to terminate or is it something which I can optimize? ...

Profiling ASP.NET

I'd like to profile sections of asp.net code to be able to objectively compare alternate approaches based on some real numbers. A good example is: I'd like to see an instruction trace for for what happens when a repeater is rendered vs (blech - the following is NOT my idea) building markup in a concatenated string or stringbuilder and ...

[SOLVED] How do I find out why g++ takes a very long time on a particular file?

I am building a lot of auto-generated code, including one particularly large file (~15K lines), using a mingw32 cross compiler on linux. Most files are extremely quick, but this one large file takes an unexpectedly long time (~15 minutes) to compile. I have tried manipulating various optimization flags to see if they had any effect, wi...

Performance of python library keyczar in Windows

I am running this code to see the performance impact of the keyczar encryption library from google: from keyczar import keyczar, keys def main(iters): key = keys.RsaPrivateKey.Generate() msg = "ciao" crypt = None for i in range(iters): print i, "\r", crypt = key.Encrypt(msg) for i in range(iters): ...

profiling iPhone with shark -> status -?-

Hi have a problem when trying to use shark for profiling my iphone app. it worked a few times (no idea why) but most of the time, i see my iphone in the list of profilable devices, but it's status is set to -?- and i cannot select it for profiling does someone know this issue and how to resolve it? ...

Getting more info from Rprof()

I've been trying to dig into what the time-hogs are in some R code I've written, so I'm using Rprof. The output isn't yet very helpful though: > summaryRprof() $by.self self.time self.pct total.time total.pct "$<-.data.frame" 2.38 23.2 2.38 23.2 "FUN" 2.04 19.9 ...