It's worth a try... OR you could hook into a perl script, a PHP routine, or
something other than using Java to do file listing...
If that's just an example and not really what you're trying to do...
hmmmmm... well, same deal. Perl, PHP, a C shell script, or any other viable
alternative should work... shouldn't it?
Laterz,
J
------------------------------------------------
Jared C. Rypka-Hauer
Continuum Media Group LLC
http://www.web-relevant.com
Burnsville MN 55337
_____
From: Dave Carabetta [mailto:[EMAIL PROTECTED]
Sent: Monday, September 13, 2004 5:00 PM
To: CF-Linux
Subject: fork() and cfexecute
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]
