Performance and scalability: Creating softlinks on Linux from java
Hi, My Application needs creating Soft links using java. It currently uses Runtime.exec(). But since Runtime.exec resorts to simple forking, the memory consumption doubles every time exec() is called. Could you please suggest any alternative that is more performance friendly?
- Posted by: Sumukh Satyamurthy
- Posted on: April 23 2008 06:41 EDT
- C++ socket server is a medium for interprocess communication by Sunil n Abinash - on May 03 2008 14:33 EDT
How about writting a small c++ socket server. This will listen on a private port in your local machine. On arrival of a command, this will create a link using c/c++ apis. Java need to invoke this socket application. You can have a dedicated pool of connections to this server. If you go little further you can develop a JCA service for this with defined amount of connection pools. I am sure this will boost your performance :) Cheers Abinash http://sunilabinash.vox.com/
IPC for making a softlink? I would go for a C implementation and JNI. Philippe