I'm trying to use cfexecute to kick off a process using Sun's 1.4.2_05
JRE on Solaris. However, I constantly receive the following error when
I try and run it:

An exception occurred when invoking an external process. The cause of
this exception was that: java.io.IOException: Not enough space.
<br>The error occurred on line 11.

After doing a bunch of research, it turns out that Sun's Solaris
implementation of exec() is an expensive version of fork(), whereby it
makes a complete current process replication
in memory before proceeding with exec(). For ColdFusion's purposes,
this means that if I try and use cfexecute to even run the "ls"
command, it's going to create a new instance of the JRun process that
CF's running in. Our JVM allocation is 1.5GB, and it's ludicrous to
create a process with 1.5GB of memory allocated just to do a ls!! Does
anybody know of a workaround or a jvm argument setting I could use so
that I can use to tell the JVM *not* to duplicate the entire process?
I doubt there is because this is a OS-level issue, but I thought I'd
throw it out there just in case.

Regards,
Dave.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to