It's not a secret anymore!*
The moose likes JBoss/WildFly and the fly likes High Java.exe CPU usage after JBoss service install Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "High Java.exe CPU usage after JBoss service install" Watch "High Java.exe CPU usage after JBoss service install" New topic
Author

High Java.exe CPU usage after JBoss service install

J Walker
Greenhorn

Joined: Oct 30, 2009
Posts: 10
I have a clean Win2k8 install with JBoss 5.1 that I got up and running. When I run the run.bat everything is fine. I installed the JBoss service and whenever it runs, Java.exe peaks the CPU out and continues to use it until you kill the process. I attached part of the run log, any ideas??

Thanks!

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

VM arguments: -Dprogram.name=run.bat -Xrs -Djava.endorsed.dirs=C:\jboss-5.1.0.GA\lib\endorsed


Caused by: java.lang.OutOfMemoryError: Java heap space


Known bug. See the forum threads referenced in that JIRA, for workarounds.


[My Blog] [JavaRanch Journal]
J Walker
Greenhorn

Joined: Oct 30, 2009
Posts: 10
Cool, thanks! I edited the run.conf and changed the XMX to 1024m instead of 512m under JAVA_OPTS and that fixed it.
J Walker
Greenhorn

Joined: Oct 30, 2009
Posts: 10
So now the service isn't working again and gives the OutOfMemoryError. However, the run.bat works just fine but the CPU spikes to about 40% every few seconds.
I installed CF9 the other day.

Is there any way to get the service to run reliably?

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

Joshua Walker wrote:
I installed CF9 the other day.

What's CF9?

Joshua Walker wrote:
I edited the run.conf and changed the XMX to 1024m instead of 512m under JAVA_OPTS and that fixed it.


1) run.conf is meant for *nix systems and not Windows. For windows it's run.conf.bat
2) Changing either of run.conf or run.conf.bat is *not* going to help in this case

In the JIRA i pointed you to, you will find the forums threads which mention the workaround, one of which is to edit the service.bat to remove the JAVA_OPT being set.
J Walker
Greenhorn

Joined: Oct 30, 2009
Posts: 10
ColdFusion 9.

I meant I had edited the run.conf.bat I've tried so many different things I forgot I took the rem out of the JAVA_OPTS line in the service.bat. I added it back in and everything is back up and running. However the java.exe still peaks the CPU out at around 30-40% every 5 seconds under no load.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

Joshua Walker wrote:However the java.exe still peaks the CPU out at around 30-40% every 5 seconds under no load.


I won't call that an issue The hot deployment scanner is by default set to look for any deployment changes, every 5 seconds. So i guess it's that activity that you are seeing every 5 seconds. If you want to disable hot deployment then follow this
J Walker
Greenhorn

Joined: Oct 30, 2009
Posts: 10
Ahhh, I figured it was something to do with hot deployment but wasn't sure.

Thanks again for the quick replies! I'm sure I'll have many more questions.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: High Java.exe CPU usage after JBoss service install