Operating System - HP-UX
1751976 Members
4661 Online
108784 Solutions
New Discussion

Java Runtime.getRuntime().exec()

 
David PT
New Member

Java Runtime.getRuntime().exec()

My environment: 11iv31 and 11iv23 IA64, HP JDK 6.0.01.

I have a J2EE server which needs about 1G of heap and calls Runtime.getRuntime().exec() to get the result of lanscan(1M).

My concern is about the cost (both memory and swap space) during exec(), does anyone know if Runtime.getRuntime().exec() is implemented using fork(2) or vfork(2)?
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Java Runtime.getRuntime().exec()

You can use tusc to figure out what system call is being made.