Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Panther Slow. Java Process using 50% CPU

Panther Slow. Java Process using 50% CPU
Thread Tools
Forum Regular
Join Date: Jun 2000
Location: Brooklyn NY
Status: Offline
Reply With Quote
Dec 15, 2003, 09:55 AM
 
So my machine was running real slow, so I restarted it, and it was still slow, and then I opened top in the terminal to see that a 'java' process was eating anywhere between 5% and 60% of the CPU.

Any ideas? I can't see any reason or application that would be needing java.

Thanks for your help.

Tom
     
Senior User
Join Date: May 2002
Location: Austria
Status: Offline
Reply With Quote
Dec 15, 2003, 09:57 AM
 
try

ps -ax

in the terminal to see the parameters of the java command and post them here
     
fats277  (op)
Forum Regular
Join Date: Jun 2000
Location: Brooklyn NY
Status: Offline
Reply With Quote
Dec 15, 2003, 10:26 AM
 
I ran ps command and got this:

446 ?? S 0:06.74 /System/Library/Frameworks/JavaVM.framework/Home/bin/


Thanks,

Tom
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Dec 15, 2003, 10:29 AM
 
Sorry, duplicate post.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Dec 15, 2003, 10:32 AM
 
Originally posted by fats277:
I ran ps command and got this:

446 ?? S 0:06.74 /System/Library/Frameworks/JavaVM.framework/Home/bin/


Thanks,

Tom
let's try again. Run this:

Code:
ps -auxww | grep java
I suspect it's the shared-library preloading tool that Apple runs on system startup to allow sharing libraries across VMs, but when you run the above command you can be sure.

If you're curious what I'm talking about, here's a quote about it from Apple's java page:

Less memory, faster start
On other platforms, each Java application consumes some system memory. So you might end up using more memory than you need to when running multiple Java applications. Other languages, such as C or C++, solve this problem using what’s called shared libraries. Apple developed an innovative new technology that allows Java code to be shared across multiple applications. This reduces the amount of memory that Java applications normally use. And it fits right into Sun’s Hot Spot VM, allowing Mac OS X to remain compatible with standard Java. In addition, Apple has given this implementation to Sun so the company can deploy it on other platforms. Just one example of how Apple supports standards and shares ideas to benefit all.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
fats277  (op)
Forum Regular
Join Date: Jun 2000
Location: Brooklyn NY
Status: Offline
Reply With Quote
Dec 15, 2003, 11:08 AM
 
I think we found it. I think it's the Adobe Version Cue thing that comes with CS.

I don't use it, so I can uninstall it and have it not startup at all.

Thanks for that command, very helpful. Output below.

Tom


root 449 0.0 5.8 351664 76620 ?? S 11:57AM 0:32.55 /System/Library/Frameworks/JavaVM.framework/Home/bin/java -Djava.net.preferIPv4Stack=true -esa -ea -Xms128m -Xmx128m -Djava.endorsed.dirs=/Applications/Adobe Version Cue/tomcat/bin:/Applications/Adobe Version Cue/tomcat/common/endorsed -classpath /System/Library/Frameworks/JavaVM.framework/Home/lib/tools.jar:/Applications/Adobe Version Cue/tomcat/bin/bootstrap.jar -Dcatalina.base=/Applications/Adobe Version Cue/tomcat -Dcatalina.home=/Applications/Adobe Version Cue/tomcat -Djava.io.tmpdir=/Applications/Adobe Version Cue/tomcat/temp org.apache.catalina.startup.Bootstrap start
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Dec 15, 2003, 12:11 PM
 
Originally posted by fats277:
I think we found it. I think it's the Adobe Version Cue thing that comes with CS.

I don't use it, so I can uninstall it and have it not startup at all.
Apparently CS includes Jakarta (Apache) Tomcat, a Java Servlet engine. That's what is running. I suspect that is what is running. You can look in /Library/StartupItems and see what startup items are installed. There may be one for the tomcat/CS package causing it to start up tomcat for you.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
fats277  (op)
Forum Regular
Join Date: Jun 2000
Location: Brooklyn NY
Status: Offline
Reply With Quote
Dec 15, 2003, 12:22 PM
 
yeah...looks like.

I removed version cue, restarted, now I'm flying right.

I'm getting a g5 this week, I'll be careful what I install.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:15 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2