This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Tomcat crashes when attaching NB profiler | ||
---|---|---|---|
Product: | profiler | Reporter: | tkellerer <tkellerer> |
Component: | Base | Assignee: | issues@profiler <issues> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Core dump from JVM crash
Dump file with JDK 1.6.0_10 The real JDK1.6.0_10 dump file... |
Description
tkellerer
2008-10-16 12:38:04 UTC
Created attachment 71959 [details]
Core dump from JVM crash
Sorry, forgot the details (from the ide log file) Product Version = NetBeans IDE Dev (Build 200810160201) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.6.0_07; Java HotSpot(TM) Client VM 10.0-b23; Sun Microsystems Inc. Runtime = Java(TM) SE Runtime Environment 1.6.0_07-b06 I also tried it with JDK 1.6.0_10 same problem. This looks like JDK bug. As a workaround you can try to use direct attach in monitoring mode. Once the tomcat is started, you can switch to CPU or Memory profiling. Can you please attach the JVM carch log from JDK 1.6.0_10? Created attachment 71963 [details]
Dump file with JDK 1.6.0_10
Created attachment 71967 [details]
The real JDK1.6.0_10 dump file...
Run tomcat with -Xcheck:jni try to attach from profiler and attach stdout from the Tomcat process - there should be a lot of log about JNI. Forgot about jni check. From the crash log, it looks like you are running out of perm space. Try to increase perm space to 256m. Use -XX:MaxPermSize=256m Increasing the perm size did not change anything. Ok, please try -Xcheck:jni Not much info written when using -Xcheck:jni and "dynamic attach". Do you need the JNI information when using "direct attach"? Profiler Agent: JNI On Load Initializing... Profiler Agent: JNI OnLoad Initialized succesfully Profiler Agent: Waiting for connection on port 5140 (Protocol version: 8) Profiler Agent: Established local connection with the tool # # An unexpected error has been detected by Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6ddc1375, pid=1416, tid=2828 # # Java VM: Java HotSpot(TM) Server VM (11.0-b15 mixed mode windows-x86) # Problematic frame: # V [jvm.dll+0x291375] # # An error report file with more information is saved as: # C:\Projects\DNS\portal-5.1.1\bin\hs_err_pid1416.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # So the only option would be reproducible test case. Can you prepare one? As it seems that it is the combination of Tomcat & Liferay, the only way to reproduce it: 1) Download the Liferay Tomcat bundle from http://downloads.sourceforge.net/lportal/liferay-portal-tomcat-6.0-5.1.2.zip 2) Unpack the zip file and start Tomcat 3) Try to attach to the running Tomcat using "Dynamic Attach" (either using VisualVM or NetBeans, same behaviour) Thanks, I will try it. Milestone cleanup: future->next I was able to reproduce it with liferay-portal-tomcat-6.0-5.1.2.zip. The crash is caused by bug in JVM - reported as 6839599 (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6839599) Closing as wontfix. |