• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

High Java.exe CPU usage after JBoss service install

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!

 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
J Walker
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic