This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Tweak JVM parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Tweak JVM parameters" Watch "Tweak JVM parameters" New topic

Tweak JVM parameters

Tejas Bondre

Joined: Nov 29, 2010
Posts: 3
I have a java program that demands too much processing power. I know my hardware CAN support much more than that. But the JVM is alloted only limited resources. I want to know whether we can allot more resources to JVM? Let's say I want to use my PC only for running the java program and nothing else so that my JVM can utilise the full power of the PC. Please give some hints.
Rob Spoor

Joined: Oct 27, 2005
Posts: 19655

You can give processes more priority, but sometimes only when the process is already running.

On Unix, the "nice" command can be used for this. On Windows, you can change it using the Task Manager: go to the Processes tab, right click the process, use Set Priority.

On all systems one warning: don't give the process a too priority, or it will make your system unresponsive to anything else if the process is using all resources.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: Tweak JVM parameters
Similar Threads
disadvantages with java
How to get J2ME Apps on Pocket PC 2003?
oracle xe and resource consumption improvement
Multiprocessor JVM Scalability
Calling a javaprogram from C#