 |
 |
Panther Slow. Java Process using 50% CPU
|
 |
|
 |
|
Forum Regular
Join Date: Jun 2000
Location: Brooklyn NY
Status:
Offline
|
|
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
|
|
try
ps -ax
in the terminal to see the parameters of the java command and post them here
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Jun 2000
Location: Brooklyn NY
Status:
Offline
|
|
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
|
|
|
|
|
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
|
|
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
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Jun 2000
Location: Brooklyn NY
Status:
Offline
|
|
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
|
|
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
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Jun 2000
Location: Brooklyn NY
Status:
Offline
|
|
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.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|