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.

Bug 150662 - "The profiled application does not respond" "Do you want to close the connection and stop profiling?"
Summary: "The profiled application does not respond" "Do you want to close the connect...
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Windows 3.1/NT
: P3 blocker with 1 vote (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-19 21:23 UTC by massimoh
Modified: 2013-07-17 14:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NetBeans log (45.22 KB, text/plain)
2008-10-19 21:24 UTC, massimoh
Details
NetBeans log with increased Xmx (53.76 KB, text/plain)
2008-10-21 01:08 UTC, massimoh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description massimoh 2008-10-19 21:23:18 UTC
OS: Windows Server 2008 x64
IDE: NetBeans 6.5 Dev Build 200810171401
JDK: 1.6.0_10

I ran a Java Memory profile on a Java application within the IDE. Based on log files, my app ran for about 6 minutes
then I get this popup error in the NetBeans IDE:

"The profiled application does not respond
Do you want to close the connection and stop profiling?"

If I select "no", the same dialog comes back in another 60-120 seconds (and based on log files, it seems that my
application did not resume execution). If I select "yes", the application stops after another sixty seconds or so.

BTW, this is a very simple application: this processes large sets of data files and it's single threaded, small code
base, there is no UI at all, and isn't being used in a web server.
Comment 1 massimoh 2008-10-19 21:24:23 UTC
Created attachment 72231 [details]
NetBeans log
Comment 2 Tomas Hurka 2008-10-20 08:20:28 UTC
Looking at message.log - there is OutOfMemoryError in NetBeans

WARNING [org.netbeans.lib.profiler.infolog]: OOME, resetting collectors!!!

Please try increase Xmx when running NetBeans. I also noticed that you are collection every allocation stack trace - you can lower the memory consumption 
by tracking  avery 10th or 50th allocation stack trace.
Comment 3 massimoh 2008-10-21 01:08:51 UTC
Created attachment 72328 [details]
NetBeans log with increased Xmx
Comment 4 massimoh 2008-10-21 01:10:48 UTC
I increase NetBeans memory allocation with -J-Xmx2048m and I get the same error in the GUI (no out of memory messages 
in the NetBeans log). I was watching NetBeans with jconsole.exe and memory use stayed around 1GB.
Comment 5 sworisbreathing 2009-04-02 17:03:24 UTC
I get the same issue in 6.5 on OS X.  I'm trying to profile a J2EE app that uses Spring and Hibernate, and it takes a
while to load the Spring context.  So, every time I try to profile it I have to babysit on startup and click "No" a
bunch of times on that pop-up.

Any chance we could get a toggle (like a checkbox or something) somewhere in the profiler configuration screens/menus to
suppress this message?  I think it should be enabled by default but if it's getting in the way of your profiling (which
it is, in my case), I'd like to be able to turn it off.
Comment 6 sworisbreathing 2009-04-02 17:10:44 UTC
addendum to my previous comment: 

This message also comes up periodically while my application is running, and if I'm not there to click "Yes" or "No"
(such as when I'm running it overnight), the VM Telemetry graph doesn't update properly.

What I'd really like to see is a "good faith" effort on the Profiler's part to update when it can, even if the
application periodically stops responding.  I can understand if it simply can't communicate with the application, but
having something less intrusive than a modal dialog would be nice... like a status bar or something.
Comment 7 Petr Cyhelsky 2009-04-21 16:52:44 UTC
reporter has given all requested info - removing INCOMPLETE
Comment 8 Jiri Sedlacek 2009-06-08 12:16:21 UTC
Unfortunately not for 6.7.
Comment 9 sworisbreathing 2010-07-02 00:57:12 UTC
This issue seems related to https://visualvm.dev.java.net/issues/show_bug.cgi?id=346, however it is still present in NetBeans 6.9.

Is this dialog part of VisualVM and not NetBeans?  Should this issue be posted on their ticketing system, instead?
Comment 10 norbes17 2010-08-12 20:10:19 UTC
I'm also experiencing this problem in a different environment:

OS: Linux (2.6.32-24-generic)
Architecture: amd64 64bit
Java Home: /usr/lib/jvm/java-6-sun-1.6.0.20/jre
JVM: Java Hotspot(TM) 64-Bit Server VM (16.3-b01, mixed mode)

The problem persist even after increasing the amount of memory used from 512 to 1024, 1536 and 2048. It only happens when I try to use the Memory profiler, the CPU profiler works fine.

Any ideas?
Comment 11 Tomas Hurka 2010-08-13 12:45:05 UTC
(In reply to comment #10)
> I'm also experiencing this problem in a different environment:
> 
> OS: Linux (2.6.32-24-generic)
> Architecture: amd64 64bit
> Java Home: /usr/lib/jvm/java-6-sun-1.6.0.20/jre
> JVM: Java Hotspot(TM) 64-Bit Server VM (16.3-b01, mixed mode)
> 
> The problem persist even after increasing the amount of memory used from 512 to
> 1024, 1536 and 2048. It only happens when I try to use the Memory profiler, the
> CPU profiler works fine.
> 
> Any ideas?
Which version of NetBeans do you use? 
Which version of JDK is used for profiled application? I suggest to use 1.6.0_21 for profiled application. 16.0_21 fixed crash when taking memory snapshot. See <http://netbeans.org/bugzilla/show_bug.cgi?id=183107>. It would be great if you can provide reproducible test-case.
Comment 12 norbes17 2010-08-17 19:10:20 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > I'm also experiencing this problem in a different environment:
> > 
> > OS: Linux (2.6.32-24-generic)
> > Architecture: amd64 64bit
> > Java Home: /usr/lib/jvm/java-6-sun-1.6.0.20/jre
> > JVM: Java Hotspot(TM) 64-Bit Server VM (16.3-b01, mixed mode)
> > 
> > The problem persist even after increasing the amount of memory used from 512 to
> > 1024, 1536 and 2048. It only happens when I try to use the Memory profiler, the
> > CPU profiler works fine.
> > 
> > Any ideas?
> Which version of NetBeans do you use? 
> Which version of JDK is used for profiled application? I suggest to use
> 1.6.0_21 for profiled application. 16.0_21 fixed crash when taking memory
> snapshot. See <http://netbeans.org/bugzilla/show_bug.cgi?id=183107>. It would
> be great if you can provide reproducible test-case.

I was using NetBeans 6.8. But now I started all over with NetBeans 6.9.1 and JDK 1.6.0_21, these are my specs showed by the About window:

   Product Version: NetBeans IDE 6.9.1 (Build 201007282301)
   Java: 1.6.0_21; Java HotSpot(TM) 64-Bit Server VM 17.0-b16
   System: Linux version 2.6.32-21-generic running on amd64; UTF-8; en_US (nb)

And these are the starting options in the etc/netbeans.conf:

netbeans_default_options="-J-client -J-Xmx1536m -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true"


I started the memory profiler with these options selected: "Record both object creation and garbage collection", "Record stack trace for allocations" and "Track every object allocations" set to 50. And after some minutes of using my web application (project under test) it gets really slow and finally this message appeared on NetBeans:

"The profled application does not respond. Do you want to close the connection and stop profiling?"

I need to have it running for at least 30 minutes to take some snapshots and find out where the memory leak is...

Thanks in advance
Comment 13 Tomas Hurka 2013-07-17 14:26:39 UTC
It seems to be fixed. Please reopen if you are able to reproduce it with NetBeans 7.3 beta. Thanks.