Are there Java libraries for setting IO scheduler priority on Linux

I have a Java program running on a Linux system, and I would like to give a higher priority to the I / O scheduler. Is there a JNI / JNA library that will allow me to do this from my code?

+3
source share
2 answers

You can create an external command and call ionice in your process.

+1
source

You can get the PID for a Java process using the Java management API, at least when using the Sun JVM. Look at the actual implementations of the control objects, one returns pid (I don’t know what at the moment).

jnative linux, , .

+1

Source: https://habr.com/ru/post/1758497/


All Articles