Is there a better way to call an external program under unix? I wasn't
aware of this... (I haven't noticed any big problems, the few times
where I have cfexecuted an external program)


--
Hugo Ahlenius

-------------------------------------------------------------
Hugo Ahlenius                  E-Mail: [EMAIL PROTECTED]
Project Officer                Phone:            +46 8 230460
UNEP GRID-Arendal              Fax:              +46 8 230441
Stockholm Office               Mobile:         +46 733 467111
                               WWW:       http://www.grida.no
------------------------------------------------------------- 






| -----Original Message-----
| From: Dave Carabetta [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, November 30, 2004 17:57
| However, I would strongly advise that you stay away from
| cfexcute on unix systems if you can. Because of the way the
| fork() method was implemented on unix systems (which is what
| cfexecute calls under the hood to run the external process)
| it duplicates the amount of memory of the calling process to
| run the external process, which is crazy.
| So, for example, if your JRun process is currently taking up
| 1 GB of RAM (a pretty common JVM size), then cfexecute will
| run the external process using 1 GB of RAM, which will very
| quickly throw an Out of Memory exception. I learned this the
| hard way so I figured I'd save you the hassle down the road.
| In single-user testing you might not see the error because
| you might have enough swap space to create this second
| process, but any more than a couple of users will bring your
| system to a grinding halt. So I'm not sure what you're trying
| to do, but I would find another way to do it. Mind you, this
| is not Macromedia's problem -- it's a UNIX problem that is
| just a known implementation issue.

###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft
Exchange.
For more information, connect to http://www.F-Secure.com/


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - New Atlanta
http://www.newatlanta.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185773
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to