26 Dec 17:58
25 Dec 11:11
Profiling junit test in J2EE project
Long Path Tool is very useful if you are having problems in deleting, unlocking, copying and even renaming files that are considered filename too long by your system. Yes, these problems can occur even while using the latest Windows Explorer or FAR in managing your files. This tool can help you simplify files names that are categorized as filename too long by your system. Long Path Tool (http://www.longpathtool.com/)
23 Dec 11:24
Profiler general questions
Hello, Dear Profiler Experts I am trying the NB Profiler for the memory leak search, but still don't know how to do this. I read few times tutorials on NB site, but the questions are still existing. Could you answer some general questions, please? Next are my project pictures from Profiler with my comment. 1. Why Surviving generations line has a step up when I force GC? What is happening? 2. Does it mean the memory leak if Surviving generations has a step up every time when I open JDialog and run some process? Why the heap pink area goes up every time when I do this? 3. What means if Surviving generations line has a step down during the profiling (it happens sometime)? 4. Why the heap size is 64MB on start, but about 49MB later? How JVM is assigning the heap size? 5. What is the difference between «Live Objects» and «Allocated Objects»? 6. Does it mean the memory leak if number of Allocated Objects more than number of Live Objects? 7. How can I find my code or class in case of memory leak, if memory picture shows java.lang.String class? What is the scenario to get it? 8. What is the best indicator of the memory leak in Profiler information? 9. What are the best recommendations for the memory leak searching? Attachments: http://forums.netbeans.org//files/surv_944.jpg http://forums.netbeans.org//files/heap_197.jpg http://forums.netbeans.org//files/memory_193.jpg
15 Dec 00:08
Remote attach without waiting for application to start.
The instructions for remotely connecting to a java app to profile it are: 1. launch my java app on the remote server with the agentpath option set. The app will launch, but wait until the profiler attaches. But I dont' want it to wait for me. Is this possible? How do I do it? I could launch it the first time, attach, but then I want to be able to let it run and let me reattach/detach at will. But I read somewhere else that it won't profile threads that start before I attach, and I don't know if it will be useful to me if I can't see running threads because I attached after they started. Is this true?
12 Dec 19:17
Profiling JRuby with Netbeans
Hi,
I want to profile a Ruby application with Netbeans profiler so I have migrated the project to JRuby and now I want to see nice performance statistics. There is any trick to use the profiler to see a JRuby application? I was thinking that maybe I can create a Java application with a main that executes my Ruby tests or something like this.
There is any plan to integrate ruby-prof inside Netbeans, to profile any kind of ruby application?
Thanks in advance,
3 Dec 21:29
Exception in thread "main" java.lang.UnsupportedClassVersionError
Hi i have this problem java.lang.UnsupportedClassVersionError: flanagan/integration/DerivFunction : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: RungeKuttaExampleFour. Program will exit. I have Product Version: NetBeans IDE 7.0.1 Java JDK version: 1.6.0_23 System: Windows 7 Can someone help me with this problem? Thanks
14 Nov 09:23
profiled process can't be killed
Dear all I attached the netbeans profiler to a java process and disconnect the netbeans profiler. After that, I killed the java process, but the kill command does not work. Is here a dead lock on org.netbeans.lib.profiler.server.ProfilerServer$ShutdownWaitThread while shut down the profiled java process? full jstack log :
Here's the jstack snippet: 2011-11-14 16:06:38 Full thread dump Java HotSpot(TM) 64-Bit Server VM (17.1-b03 mixed mode): "SIGTERM handler" daemon prio=10 tid=0x000000004106c800 nid=0x6ed8 waiting for monitor entry [0x00007f58091d8000] java.lang.Thread.State: BLOCKED (on object monitor) at java.lang.Shutdown.exit(Shutdown.java:168) - waiting to lock <0x00007f584cca4810> (a java.lang.Class for java.lang.Shutdown) at java.lang.Terminator$1.handle(Terminator.java:35) at sun.misc.Signal$1.run(Signal.java:195) at java.lang.Thread.run(Thread.java:662) "SIGTERM handler" daemon prio=10 tid=0x000000004122f800 nid=0x6c80 waiting for monitor entry [0x00007f5808f8f000] java.lang.Thread.State: BLOCKED (on object monitor) at java.lang.Shutdown.exit(Shutdown.java:168) - waiting to lock <0x00007f584cca4810> (a java.lang.Class for java.lang.Shutdown) at java.lang.Terminator$1.handle(Terminator.java:35) at sun.misc.Signal$1.run(Signal.java:195) at java.lang.Thread.run(Thread.java:662) "*** Profiler Agent Special Execution Thread 7" prio=10 tid=0x00007f5804847000 nid=0x38a0 in Object.wait() [0x00007f58011d0000] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) at org.netbeans.lib.profiler.server.ProfilerServer.waitForShutdownOK(ProfilerServer.java:1074) - locked <0x00007f5810e34a40> (a java.lang.Object) at org.netbeans.lib.profiler.server.ProfilerServer.access$400(ProfilerServer.java:73) at org.netbeans.lib.profiler.server.ProfilerServer$ShutdownWaitThread.run(ProfilerServer.java:259) "Attach Listener" daemon prio=10 tid=0x000000004153b000 nid=0x364a waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "LruBlockCache.EvictionThread" daemon prio=10 tid=0x00007f58044cb000 nid=0x35fd in Object.wait() [0x00007f58017d6000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00007f5810ecbfd0> (a org.apache.hadoop.hbase.io.hfile.LruBlockCache$EvictionThread) at java.lang.Object.wait(Object.java:485) at org.apache.hadoop.hbase.io.hfile.LruBlockCache$EvictionThread.run(LruBlockCache.java:521) - locked <0x00007f5810ecbfd0> (a org.apache.hadoop.hbase.io.hfile.LruBlockCache$EvictionThread) "DestroyJavaVM" prio=10 tid=0x00007f58044e6000 nid=0x359e in Object.wait() [0x00007f585621c000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00007f5810d015a8> (a org.netbeans.lib.profiler.server.ProfilerServer$ShutdownWaitThread) at java.lang.Thread.join(Thread.java:1189) - locked <0x00007f5810d015a8> (a org.netbeans.lib.profiler.server.ProfilerServer$ShutdownWaitThread) at java.lang.Thread.join(Thread.java:1240) at java.lang.ApplicationShutdownHooks.runHooks(ApplicationShutdownHooks.java:80) at java.lang.ApplicationShutdownHooks$1.run(ApplicationShutdownHooks.java:25) at java.lang.Shutdown.runHooks(Shutdown.java:80) at java.lang.Shutdown.sequence(Shutdown.java:127) at java.lang.Shutdown.shutdown(Shutdown.java:191) - locked <0x00007f584cca4810> (a java.lang.Class for java.lang.Shutdown) "Low Memory Detector" daemon prio=10 tid=0x00007f58042ad000 nid=0x35c1 runnable [0x0000000000000000] java.lang.Thread.State: RUNNABLE "CompilerThread1" daemon prio=10 tid=0x00007f58042aa800 nid=0x35c0 waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "CompilerThread0" daemon prio=10 tid=0x00007f58042a9800 nid=0x35bf waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "Signal Dispatcher" daemon prio=10 tid=0x00007f5804028800 nid=0x35a6 runnable [0x0000000000000000] java.lang.Thread.State: RUNNABLE "Surrogate Locker Thread (CMS)" daemon prio=10 tid=0x00007f5804026800 nid=0x35a5 waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "Finalizer" daemon prio=10 tid=0x00007f5804001000 nid=0x35a4 in Object.wait() [0x00007f5809dbb000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00007f5810d00030> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118) - locked <0x00007f5810d00030> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) "Reference Handler" daemon prio=10 tid=0x0000000040ec5000 nid=0x35a3 in Object.wait() [0x00007f5809ebc000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00007f5810d00048> (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:485) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) - locked <0x00007f5810d00048> (a java.lang.ref.Reference$Lock) "VM Thread" prio=10 tid=0x0000000040ebd000 nid=0x35a2 runnable "Gang worker#0 (Parallel GC Threads)" prio=10 tid=0x0000000040e02800 nid=0x359f runnable "Gang worker#1 (Parallel GC Threads)" prio=10 tid=0x0000000040e04800 nid=0x35a0 runnable "Concurrent Mark-Sweep GC Thread" prio=10 tid=0x0000000040e63000 nid=0x35a1 runnable "VM Periodic Task Thread" prio=10 tid=0x00007f58042b8800 nid=0x35c2 waiting on condition JNI global references: 7839
1 Aug 21:37
11 Jul 15:52
Remote Profiling Problem - NetBeans7.0, JBoss6.0.0, OpenJDK1.6.0
When I tried to profile(cpu) my application on remote JBoss6 server, the server process crashed. JBoss6 server runs on OpenJDK6.0_17-b17, and I use NetBeans 7.0. With SunJDK6.0(HotSpot), this error does not occur. But I need to profile my app with OpenJDK. Anyone knows a solution (or reason) of this problem? > > # > # A fatal error has been detected by the Java Runtime Environment: > # > # SIGSEGV (0xb) at pc=0x00002ac597170ed0, pid=20282, tid=1163663680 > # > # JRE version: 6.0_17-b17 > # Java VM: OpenJDK 64-Bit Server VM (14.0-b16 mixed mode linux-amd64 ) > # Derivative: IcedTea6 1.7.10 > # Distribution: Custom build (Thu Apr 7 12:51:17 EDT 2011) > # Problematic frame: > # V [libjvm.so+0x661ed0] > # > # An error report file with more information is saved as: > # /home/vermgr/hs_err_pid20282.log > # > # If you would like to submit a bug report, please include > # instructions how to reproduce the bug and visit: > # http://icedtea.classpath.org/bugzilla > # > /opt/JBOSS/jboss-6.0.0.Final/bin/run_netbeans.sh: line 250: 20282 ã¢ãã¼ããã¾ãã"/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/bin/java" -server -Xms256m -Xmx768m -XX:MaxPermSize=384m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -agentpath:/work_area/profiler/netbeans/lib/deployed/jdk16/linux-amd64/libprofilerinterface.so=/work_area/profiler/netbeans/lib,5140 -Djboss.platform.mbeanserver -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl -Xshare:off -Djava.net.preferIPv4Stack=true -Dprogram.name=run_netbeans.sh -Djava.library.path=/opt/JBOSS/jboss-6.0.0.Final/bin/native/lib64 -Djava.endorsed.dirs="/opt/JBOSS/jboss-6.0.0.Final/lib/endorsed" -classpath "/opt/JBOSS/jboss-6.0.0. Final/bin/run.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/lib/tools.jar" org.jboss.Main -c TestServer -b 0.0.0.0 > I added "-Djboss.platform.mbeanserver -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl" to JAVA_OPTS because the server cannot start up without this option. http://community.jboss.org/wiki/JProfilerAgainstJBossAS6xFailsToBoot Thanks, Attachments: http://forums.netbeans.org//files/hs_err_pid8913_208.txt
15 Jun 14:03
Profile Enterprise Application
I would like profile Enterprise Application. I'm trying to do this using the way introduced by http://netbeans.org/kb/docs/java/profiler-intro.html However I get an error: > Target "compile-test-single" does not exist in the project "TestProfiler". It is used from target "profile-test-single". What I have to do to be able profile Enterprise Application? Is it possible?
30 May 11:54
Tomcat not starting
It seems like the connection to remote application was someway broken. They can take a look at Tomcat log file. This should give us some information, why Tomcat was not started as well as why the connection was broken. ------------------------ Dallas Locksmith (http://www.dallaslocksmiths.com/) | Locksmith Dallas (http://locksmithindallas.org/)
RSS Feed