Copy link to clipboard
Copied
I think my coldfusion server is doing somehting odd, it appears to be hanging on to httpd processess & not letting them go - ventually running the server out of memory
I get this when I try to stop the server :
Stopping ColdFusion 8, please wait
Error occurred during initialization of VM
Could not reserve enough space for object heap
*** glibc detected *** /opt/coldfusion8/runtime/bin/coldfusion8: free(): invalid pointer: 0xbffe9660 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7ee6aa6]
/lib/libc.so.6(cfree+0x90)[0xb7ee9fc0]
/opt/coldfusion8/runtime/jre/lib/i386/server/libjvm.so[0x6602f93]
/opt/coldfusion8/runtime/jre/lib/i386/server/libjvm.so[0x65b3fe0]
/opt/coldfusion8/runtime/jre/lib/i386/server/libjvm.so[0x65b5c1d]
/opt/coldfusion8/runtime/jre/lib/i386/server/libjvm.so[0x65b9099]
/opt/coldfusion8/runtime/jre/lib/i386/server/libjvm.so(JNI_CreateJavaVM+0x53)[0x639c293]
/opt/coldfusion8/runtime/bin/coldfusion8[0x804c518]
/opt/coldfusion8/runtime/bin/coldfusion8[0x804ad7b]
/opt/coldfusion8/runtime/bin/coldfusion8[0x804a0f2]
/opt/coldfusion8/runtime/bin/coldfusion8[0x8049036]
/lib/libc.so.6(__libc_start_main+0xdc)[0xb7e95dec]
/opt/coldfusion8/runtime/bin/coldfusion8(dlopen+0x41)[0x8048ea1]
======= Memory map: ========
06000000-0665c000 r-xp 00000000 00:59 86672232 /opt/coldfusion8/runtime/jre/lib/i386/server/libjvm.so
0665c000-066a0000 rwxp 0065c000 00:59 86672232 /opt/coldfusion8/runtime/jre/lib/i386/server/libjvm.so
066a0000-06ac2000 rwxp 066a0000 00:00 0
08048000-08051000 r-xp 00000000 00:59 86682252 /opt/coldfusion8/runtime/bin/coldfusion8
08051000-08052000 rwxp 00008000 00:59 86682252 /opt/coldfusion8/runtime/bin/coldfusion8
08052000-08095000 rwxp 08052000 00:00 0
80400000-80421000 rwxp 80400000 00:00 0
80421000-80500000 --xp 80421000 00:00 0
8050d000-80518000 r-xp 00000000 00:59 25170338 /lib/libgcc_s-4.1.2-20070626.so.1
80518000-80519000 rwxp 0000a000 00:59 25170338 /lib/libgcc_s-4.1.2-20070626.so.1
b4d22000-b4d2b000 rwxp b4d22000 00:00 0
b4d2b000-b4de2000 rwxp b4d2b000 00:00 0
b4de2000-b5022000 rwxp b4de2000 00:00 0
b5022000-b7de2000 rwxp b5022000 00:00 0
b7de2000-b7df1000 r-xp 00000000 00:59 86672238 /opt/coldfusion8/runtime/jre/lib/i386/libzip.so
b7df1000-b7df3000 rwxp 0000e000 00:59 86672238 /opt/coldfusion8/runtime/jre/lib/i386/libzip.so
b7df3000-b7e16000 r-xp 00000000 00:59 86672272 /opt/coldfusion8/runtime/jre/lib/i386/libjava.so
b7e16000-b7e18000 rwxp 00023000 00:59 86672272 /opt/coldfusion8/runtime/jre/lib/i386/libjava.so
b7e18000-b7e23000 r-xp 00000000 00:59 86672264 /opt/coldfusion8/runtime/jre/lib/i386/libverify.so
b7e23000-b7e24000 rwxp 0000b000 00:59 86672264 /opt/coldfusion8/runtime/jre/lib/i386/libverify.so
b7e24000-b7e2d000 r-xp 00000000 00:59 25170318 /lib/libnss_files-2.5.so
b7e2d000-b7e2e000 r-xp 00008000 00:59 25170318 /lib/libnss_files-2.5.so
b7e2e000-b7e2f000 rwxp 00009000 00:59 25170318 /lib/libnss_files-2.5.so
b7e2f000-b7e42000 r-xp 00000000 00:59 25170304 /lib/libnsl-2.5.so
b7e42000-b7e43000 r-xp 00012000 00:59 25170304 /lib/libnsl-2.5.so
b7e43000-b7e44000 rwxp 00013000 00:59 25170304 /lib/libnsl-2.5.so
b7e44000-b7e46000 rwxp b7e44000 00:00 0
b7e47000-b7e4f000 rwxs 00000000 68:05 17126466 (deleted) /tmp/hsperfdata_apache/30648
b7e4f000-b7e56000 r-xp 00000000 00:59 25170246 /lib/librt-2.5.so
b7e56000-b7e57000 r-xp 00006000 00:59 25170246 /lib/librt-2.5.so
b7e57000-b7e58000 rwxp 00007000 00:59 25170246 /lib/librt-2.5.so
b7e58000-b7e7d000 r-xp 00000000 00:59 25170336 /lib/libm-2.5.so
b7e7d000-b7e7e000 r-xp 00024000 00:59 25170336 /lib/libm-2.5.so
b7e7e000-b7e7f000 rwxp 00025000 00:59 25170336 /lib/libm-2.5.so
b7e7f000-b7e80000 rwxp b7e7f000 00:00 0
b7e80000-b7fba000 r-xp 00000000 00:59 25170592 /lib/libc-2.5.so
b7fba000-b7fbc000 r-xp 0013a000 00:59 25170592 /lib/libc-2.5.so
b7fbc000-b7fbd000 rwxp 0013c000 00:59 25170592 /lib/libc-2.5.so
b7fbd000-b7fc0000 rwxp b7fbd000 00:00 0
b7fc0000-b7fc2000 r-xp 00000000 00:59 25170292 /lib/libdl-2.5.so
b7fc2000-b7fc3000 r-xp 00001000 00:59 25170292 /lib/libdl-2.5.so
b7fc3000-b7fc4000 rwxp 00002000 00:59 25170292 /lib/libdl-2.5.so
b7fc4000-b7fd7000 r-xp 00000000 00:59 25170430 /lib/libpthread-2.5.so
b7fd7000-b7fd8000 r-xp 00012000 00:59 25170430 /lib/libpthread-2.5.so
b7fd8000-b7fd9000 rwxp 00013000 00:59 25170430 /lib/libpthread-2.5.so
b7fd9000-b7fdc000 rwxp b7fd9000 00:00 0
b7fdc000-b7fe2000 r-xp 00000000 00:59 86672314 /opt/coldfusion8/runtime/jre/lib/i386/native_threads/libhpi.so
b7fe2000-b7fe3000 rwxp 00006000 00:59 86672314 /opt/coldfusion8/runtime/jre/lib/i386/native_threads/libhpi.so
b7fe3000-b7fe4000 rwxp b7fe3000 00:00 0
b7fe4000-b7fe5000 r-xp b7fe4000 00:00 0
b7fe5000-b7ffe000 r-xp 00000000 00:59 25170244 /lib/ld-2.5.so
b7ffe000-b7fff000 r-xp 00019000 00:59 25170244 /lib/ld-2.5.so
b7fff000-b8000000 rwxp 0001a000 00:59 25170244 /lib/ld-2.5.so
bffae000-bffb1000 --xp bffae000 00:00 0
bffb1000-bfffe000 rwxp bffb1000 00:00 0
ffffe000-fffff000 r-xp 00000000 00:00 0
sh: line 1: 30648 Aborted /opt/coldfusion8/runtime/bin/coldfusion8 -jar jrun.jar stop coldfusion
The ColdFusion 8 server seems to be hanging, will stop non-gracefully
ColdFusion 8 has been stopped
any help? ideas? getting desperate
-thanks
-sean
Copy link to clipboard
Copied
Sean, as for the setting of "max simultaneous requests", and whether it's connected to number of CPUs, I'd say don't stress about it. I'm firmly convinced that that's an old notion (based on an old Adobe technote) that people just keep parroting. Sure, when CF was interpreting your CFML as pcode, it was CPU-intensive. These days, CFML runs as Java classes, and more important, most long-running CF requests spends far more time waiting for other things (database queries, cfhttp calls, web service calls, etc.) which burn no CPU while waiting.
So really, people can likely run more threads than that traditional recommendation. How many? No one can tell you. If you don't have enough, then you may get enough load that you're using all of them all that time, which leads to queuing. The use of threads (and queuing) can be monitored via CFSTAT (except on the Multiserver edition), or JRun metrics, or the CF Server monitor, or tools like FusionReactor and SeeFusion, to name a few.
If you set too many, you may stress your box (asking it to do too much), or you may stress a connected box (like a database server, which may not be up to you pushing many more requests at once).
It's a balancing act, which you can only set by watching measures like the above, while increasing the number, whether in load testing or in production (for those that feel they have no choice).
Hope that helps.
/charlie
Copy link to clipboard
Copied
You can safely disregard that file path. Precompiled templates contain the path from which they were originally compiled.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
Read this before you post:
http://forums.adobe.com/thread/607238
Copy link to clipboard
Copied
arrggh indeed.
There is nothing in those logs to show the JVM memory is having a problem so expect can ignor comments about JVM min and max.
Maybe a sanity check is in order. Plenty disk space free (df -something)? Filesystem is not corrupt (fsck ? - it has been a while)?
HTH, Carl.
Copy link to clipboard
Copied
There is nothing in those logs to show the JVM memory is having a problem so expect can ignor comments about JVM min and max.
Agreed.
I did a sanity check, unfortuantely all I have left is beer, scotch has run dry..... fail!
lot's of free disk space, as far as checking the file system consistancy I beleive I can only do that on an unmounted volume in single user mode. - Not an option for a producton box right now.
investigating the scheduler issue now .... not sure if it wll be fruitful.
-sean
Copy link to clipboard
Copied
>I do have: /runtime/logs/coldfusion-event.log
>if I search the whole system there is no out log [coldfusion 8.0.1 right?]
On Windows CF8.0.1 there is an OUT and EVENT log where the better details for diagnosing problems are in the OUT log. Maybe CF community might know better, perhaps on the OS in use only an EVENT log. My CF7 8 9 experience only on Windows.
Cheers, Carl.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more