aspose file tools
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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: 19845

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