Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

temp files in memory in java program

Is there a way to force the temporary files created in a java program in memory? Since I use several large xml file, I would have advantages in this way? Should I use a transparent method that allows me to not upset the existing application.

UPDATE: I'm looking at the source code and I noticed that it uses libraries (I can not change) which requires the path of those files ...

Thanks

like image 686
Lyther Avatar asked Sep 12 '26 23:09

Lyther


1 Answers

The only way I can think of is to create a RAM disk and then point the system property java.io.tmpdir to that RAM disk.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!