Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tweak JVM parameters

 
Tejas Bondre
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20531
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic