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 235815 - Almost 100% High CPU usage and 1 GB memory usage running a Java Web Application
Summary: Almost 100% High CPU usage and 1 GB memory usage running a Java Web Application
Status: RESOLVED INCOMPLETE
Alias: None
Product: ide
Classification: Unclassified
Component: Performance (show other bugs)
Version: 8.0
Hardware: PC Windows 8
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords: TOMCAT
Depends on:
Blocks:
 
Reported: 2013-09-11 12:41 UTC by LimboExile
Modified: 2014-08-08 21:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Messages.log (134.04 KB, application/octet-stream)
2014-08-08 21:40 UTC, gsilver
Details

Note You need to log in before you can comment on or make changes to this bug.
Description LimboExile 2013-09-11 12:41:55 UTC
I start NetBeans, everything works fine.

I run my Java Web Application project using Apache Tomcat. For the first 10 minutes everything is still fine. Then, even if I forget about NetBeans and mind my own business NetBeans' CPU usage gets to 90%+ and stays like that even when I stop Apache server. Everything is extra slow as you can imagine. In fact the only solution at that moment is to close NetBeans. And even when NetBeans is closed and disappeared from my screen NetBeans process stays in Task Manager consuming 90%+ CPU for a minute or two.

OS: Windows 8
Processor: core i7
RAM: 8 GB
NetBeans 7.3.1

Tell me which screenshots or log files should i produce and attach to this bug report.
Comment 1 Petr Cyhelsky 2013-09-25 13:14:15 UTC
There is not enough information to diagnose. Please attach following:

1. Self-sampling npss snapshot of the "90%" behavior
2. Thread dump from the time when the process is still there after you closed it
3. messages.log file from that run
Comment 2 benno_007 2013-09-27 03:07:09 UTC
I'm getting the same problem, although I'm not using Tomcat. After a few hours, it just slows right down, starts using more CPU and memory, and then becomes unusable when it reaches 1.1GB of RAM and ~90% CPU.


OS: Windows 7 64bit
Processor: core i7 3770
RAM: 16 GB
NetBeans 7.3.1

How do I take those snapshots for you and where is messages.log?
Comment 3 Petr Cyhelsky 2013-09-27 08:15:53 UTC
 
> How do I take those snapshots for you and where is messages.log?

Log: http://wiki.netbeans.org/FaqLogMessagesFile
Snapshot: http://wiki.netbeans.org/FitnessViaPartnership

From your description it also seems memory-related if it happens again please take a heap dump (you can use VisualVM for that) and upload it at http://deadlock.netbeans.org/job/upload/build?
Comment 4 gsilver 2014-08-08 21:40:40 UTC
Created attachment 148613 [details]
Messages.log