The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 19, 2019, 06:14:00 AM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: CF is a PAIN IN MY ASS!  (Read 3073 times)
flyer9753
Rookie
**
Offline Offline

Posts: 13


View Profile
« on: November 12, 2008, 12:45:00 PM »

Hi all

Having a little problem with CF Server on Linux - here is the background info (pardon the long post pls):

Linux Enterprise 5 (ugh)
Apache 2.2.3
Coldfusion Server 8.0.0.176276 (major ugh)
Settings from the settings summary page:

Timeout requests  Yes   
Enable Per App Settings  Yes   
Request Time Limit  120 seconds   
Use UUID for CFToken  No   
Enable Whitespace Management  No   
Disable Service Factory  No   
Protect serialized JSON  No   
Protect Serialized JSON Prefix  //   
Missing Template Handler     
Site-wide Error Handler     
Enable HTTP status codes  Yes   
Enable Global Script Protection  Yes   
Default CFForm ScriptSrc Directory  /CFIDE/scripts/   
Maximum size of post data  100 MB   
Request Throttle Threshold  4 MB   
Request Throttle Memory  200 MB   
Request Tuning 
Simultaneous request limit  50   
CFThread Pool Size  10   
Maximum number of report threads  1   
Maximum number of running JRun threads  50   
Maximum number of queued JRun threads  1000   
Caching 
Template cache size  1024 templates   
Enable trusted cache  No   
Cached query limit  100 
Save Class Files  Yes   
Cache web server paths  No 
Client Variable Settings 
Default client variable store  Registry   
Client Stores 
Cookie   
Type  COOKIE   
Description  Client based text file.   
Purge data after time limit  Yes   
Time limit  10 days   
Disable global updates  No   
Registry   
Type  REGISTRY   
Description  System registry.   
Purge data after time limit  Yes   
Time limit  90 days   
Disable global updates  No   
Memory Variables 
J2EE Sessions  No   
Application Variables 
Enable Application Variables  Yes   
Default Timeout  2,0,0,0   
Maximum Timeout  2,0,0,0   
Session Variables 
Enable session variables  Yes   
Default Timeout  0,0,20,0   
Maximum Timeout  2,0,0,0   
ColdFusion Mappings 
/CFIDE    /datanet/webdata/nfs_shared_web_homes/farwebstore.com/public_html/CFIDE   
/gateway    /opt/coldfusion8/gateway/cfc   
Mail Connection Settings 
Default Server Port  25   
Connection Timeout  60 seconds   
Spool Interval  15 seconds 
Mail Delivery Threads  10   
Maintain Connection to Mail Server  No   
Max Messages Spooled to Memory  50000   
Default CFMail Charset  UTF-8   
Use SSL Connection  No   
Use TLS  No   
Default Mail Server 
127.0.0.1   
Server  127.0.0.1   
Port  25   
Username     
Password     
Mail Logging Settings 
Log Severity  debug   
Log all E-mail messages sent by ColdFusion  Yes   
Charting 
Cache Type  disk images   
Maximum number of images in cache  50 images   
Maximum number of charting threads  4   
Disk cache location  /opt/coldfusion8/charting/cache   
Java and JVM 
Java virtual machine path  /opt/coldfusion8/runtime/jre   
Initial memory size  MB 
Maximum memory size  512 MB 
Class path  -Dcoldfusion.classPath={application.home}/../lib/updates,{application.home}/../lib,{application.home}/../gateway/lib/,{application.home}/../wwwroot/WEB-INF/flex/jars,{application.home}/../wwwroot/WEB-INF/cfform/jars   
JVM arguments  -server -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib   
================================================
As I am not a CF admin and this is my first time working with it most of these settings are the defaults.

CF is installed as the standalone CF server, not the multi-server Jrun install.
Enable Robust Exception Information is on so we get error info on screen at the client

My problem comes when CF locks up. It doesn't log a damn thing to tell me where the problem is and where to start looking (application or code). I have looked at the logs before and after a lockup but I can't find anything saying what happened. Or at least nothing I can understand.

Now the lockup may not be CF caused but I doubt it since the box is standard in all other aspects and has never had a lockup that was traceable to apache or the system itself and both Linux and apache are pretty good about being able to log at least something in a crash.

Is there some way to get cf to do additional logging in english? I even went onsite on a few of the lockups, hoping to catch an exception fault still on screen but nothing, screen won't even unblank once hosed. One interesting thing, when it locks up, low level network services are still available since I can ping the box during a lockup but cannot get any other responce. This of course then hoses our remote rebooter since it needs ping to stop to queue a reboot of the box Sad

I've administered all kinds of servers before and have never had this happen elsewhere. This is the only box running CF and since I can't find any problems elsewhere CF is my suspect.

Any ideas?

Thanks Smiley
Logged

No links in signatures please
jammaster82
Lifer
*****
Offline Offline

Posts: 666


Thats craigs list for ya


View Profile
« Reply #1 on: November 12, 2008, 08:59:34 PM »

<cfif i knew more about coldfusion id be of better help>

but can you write some sort of a logging procedure to
write a massively long comma seperated value log
or xml to a flat file or files on the server so you can trace
the last time the cf interpreter got to what line of your
code....?  Maybe you could pinpoint it to a single
call your trying to make that hoses it if you use the
process of elimination commentin' out one line at a time..


Code:


03:05:42::pass::correct
03:05:42::Error Reporting set to zero and allow call time pass reference set to 1
03:05:42::dir::./tests
03:05:42::uploaddir::./xmldocs
03:05:42::did we make it to here..
03:05:42::error::
03:05:42::file2::
03:05:42::===============================================
03:05:53::pass::correct
03:05:53::Error Reporting set to zero and allow call time pass reference set to 1
03:05:53::dir::./tests
03:05:53::uploaddir::./xmldocs
03:05:53::did we make it to here..
03:05:53::error::
03:05:53::file2::./xmldocs/simpletest.xml
03:05:53::===============================================
03:05:53::ob_started
03:05:53::right before doparse
03:05:53::first line inside of doparse
03:50:27::bottom of whole program..2000 is start file and 2500 is the end.



Code:
<?php

ini_set
("allow_call_time_pass_reference","1");

logit ("Error Reporting set to zero and allow call time pass reference set to 1");

$dir="./tests";//full path name of the text file  directory eg /home/testxml/texts  (without trailing slash) 

$uploaddir="./xmldocs";

logit("dir::".$dir);

logit("uploaddir::".$uploaddir);

// some other code blah blah blah blah


logit("did we make it to here..");


?>



<?php

function logit($outstr)
{
 
$nuoutstr=date('h:i:s').'::'.$outstr.chr(13).chr(10);
//file_put_contents($filename, $nuoutstr , FILE_APPEND);
// if this were php 5.0+

 
$handle fopen('xlog1.txt''a'); // append mode
 
fwrite($handle$nuoutstr);
 
fclose($handle);
}

?>


Logged

The watched pot, never boils... But if you walk away from it , the soup burns.  What gives?
flyer9753
Rookie
**
Offline Offline

Posts: 13


View Profile
« Reply #2 on: November 13, 2008, 07:43:00 PM »

ugh - ok - thanks Jammaster

I will suggest that to the programmer who handles the site.

I am rapidly arriving at the conclusion of telling her to fix her crappy code since I can't find anything wrong on the server side itself.
Logged

No links in signatures please
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!