I ran a jar file in Linux and it is running from last 3 days.
How can I change priority of that process? Will it speedup my application processing?
|
I ran a jar file in Linux and it is running from last 3 days. How can I change priority of that process? Will it speedup my application processing? | |||||
feedback
|
renice priority [-p] pid
Example:
No, if load average less number of CPU core. | |||||||
feedback
|
|
You can change priority with | |||
|
feedback
|
|
By default process priority in Linux is 0. Process priority can have any number between -20 to 19. Process priority can be set by using nice and modified using renice. -20 is the highest priority process and 19 is the lowest priority. Here you're having a process already running and you want to change its priority. So you can enter the following command
where pid is the process id of the process whose priority you want to modify. To increase the priority of a process i.e. to set the priority value to a negative value, you need to be root user or use sudo. Hope that helps. | |||
|
feedback
|