> We're having a similar problem running CFMX 6.1 on Solaris 8. We > encounter this error message when using CFEXECUTE to invoke a shell > script: > > An exception occurred when invoking an external process. The cause of this > exception was that: java.io.IOException: Not enough space. > > So it appears we're running into a similar memory overhead problem as > detailed in the post I linked earlier. From what Steve detailed in the > last post in that thread, it looks like we can expect CF's memory > consumption to spike up when the initial call is made and then come back > down once the shell script is exec()'d. My guess is that our server bombs > out right when the "spike" happens... but I'll admit I'm no expert in this > area.
If I recall correctly, the lesson I learned from all that is that most Linux systems will use Copy on Write when forking()/exec()'ing a new process which does not require the instant doubling of memory when the process forks, and I think that some Solaris systems may not use that mechanism, so when a process forks there it will require a momentary doubling. Its been a while since I read up on this. When that previous HOF thread was started, Ron loosely implied he saw the memory problem on Linux, and then i carried out some tests that didn't reproduce it. Later, Ron and some others indicated more clearly that they had only observed this on Solaris. Knowing very little about the guts of memory management, I suspect that you might want to confirm if your system is using copyonwrite or not. The error "Not enough space." isn't a java.lang.outofmemoryerror, so that's not the jvm saying that the heap is full. Rather, I'd say its the return from the OS when attempting to fork/exec. With a 512MB max heap and 1024MB physical, I'd think you might be able to get around this by either adding more physical memory to the system, or *reduce* the JVM heap for CFMX. Maybe there's something in here that might be useful as well: http://www.talkingtree.com/blog/index.cfm?mode=alias&alias=CFEXECLinux -- Steven Erat http://www.talkingtree.com/blog/ -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Now there’s a better way to fax. eFax makes it possible to use your existing email account to send and receive faxes. Try eFax free. http://www.houseoffusion.com/banners/view.cfm?bannerid=63 Message: http://www.houseoffusion.com/lists.cfm/link=i:14:3853 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/14 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:14 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.14 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
