A timeout occur while attempting to local fusebox - coldfusion

I have a fusebox application setup on coldfusion 9 and it is in production mode. When application got started, it is giving me following error.
A timeout occur while attempting to local fusebox.
I have increased the timeout but that not help. Also tried other solution but nothing help.
There is one more thing. When i increased the JVM heap size from 1-2 gb to 2-3 gb. Then after restart of coldfusion service, Error remain for 1-2 hour and then site start working.
It also stop working after running for more than half day correctly. Then i get 504 gateway error and i have to restart the service again.
Can any one guide me to solve this problem?

Which FB version are you running? Is it set to production or development mode? If set to development, try setting it to production mode.

Related

Nginx chock down

In my production environment i had nginx-1.6.0 as proxy server and tomcat-7 at backend installed on AWS. On random pattern the site was going down because nginx was getting chock down and was not receiving any traffic although tomcat was running fine all the time.
I even upgraded the nginx version to 1.10.2 (latest stable) but this behavior continues.
I have checked everything, server was having average traffic, there was no error in logs during this period. there is just a increase in CPU % at this time window.
But if only increase in cpu % is the reason then why is tomcat not showing any error ?
Not sure what is the exact reason, please help !

Sudden 503s on OpenShift Django. Need help debugging

Today accessing my Django 1.4 app on OpenShift started throwing 503 errors 99% of time when accessing it (yeah, ~1% of the time it loads fine). htop doesn't show any huge workload and the logs don't show any errors.
Any recommandations on how to debug this?
./manage.py shell works fine on the server and even theh PostgreSQL 9.2 db is fine.
I know you mentioned that there's nothing in the logs, but I would anyway try tailing all the logs rhc tail <yourApp> and watching in real time for any clues there, when the 503's are returned.
To check whether your gear is not restarting due to insufficient memory, I recommend this.
Having your ssh connection closed unexpectedly may be another indicator of unexpected gear restarts.
Note that htop displays only your tasks, which take only little resources in context of the whole node; using e.g. 3% of memory of 16GB may be nearing the small gear's limits (512 MB).

CF Service continuously restarts every 25 seconds

After my laptop froze yesterday I rebooted, and now the ColdFusion 9 Application Server service starts and restarts endlessly! Although it's set to start automatically, upon bootup it does not start. So I start it manually. Then I look at the Windows Event Viewer which reports:
The ColdFusion 9 Application Server service for the "coldfusion" server was started. PID is 5788.
That's good. But then, about 9 seconds later, Event Viewer reports:
The ColdFusion 9 Application Server service for the "coldfusion" server is restarting.
16 seconds later, the Event Viewer reports that the service has, in fact, started again. And 9 seconds after that, it reports that the service is starting again.
Unless I manually stop the service, this cycle continues, with the CF service restarting itself every 25 seconds, give or take a second. Needless to say, I can't use ColdFusion. When I try to reach a page, I get error 500: There is no web application configured to service your request
I am running the developer edition of CF9, Windows. Computer behaves normally otherwise.
[Edit]
The coldfusion-out.log includes this:
Server coldfusion ready (startup time: 9 seconds)
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_IN_PAGE_ERROR (0xc0000006) at pc=0x6d6e2424, pid=5456, tid=7724
JRE version: 6.0_17-b04
Java VM: Java HotSpot(TM) Server VM (14.3-b01 mixed mode windows-x86 )
Problematic frame:
C [nio.dll+0x2424]
An error report file with more information is saved as:
C:\ColdFusion9\runtime\bin\hs_err_pid5456.log
If you would like to submit a bug report, please visit:
http://java.sun.com/webapps/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
The detailed error report, C:\ColdFusion9\runtime\bin\hs_err_pid5456.log, has a ton of information, but I don’t understand much of it. I’ll be happy to post it all if you think you might be able to make heads or tails of it.
In the event that the only solution is to reinstall CF, can you tell me where to find the config files? I know I will need jrun-web.xml (and I know where it is), but where, for example, are the datasource definitions found? I can’t seem to find any folder or file with the settings from the CF Admin. (The CF Admin won’t run, so I can’t view them that way.)

Web Service worker process timeout (error occured on receive)

I have been struggling with this issue for literally weeks now, but seem to have found a resolution after trying every option on the net. However i'm still at a loss to explain it.
We have a web service with a method that performs a long running SQL query and takes roughly 7 minutes to complete. However, on intermittant runs we get the error;
"The underlying connection was closed: An unexpected error occurred on
a receive."
Now it turns out that in IIS7 it was the Process Model section on the application pool causing this. Even if we set the 'Ping Maximum Response Time' to something like 600 seconds (10 minutes) the error would still appear at random times... sometimes even after only 100 seconds or so.
The only way to stop this error from happening is to set the 'Ping Enabled' feature to false.
I am concerned that this might not be the best way to fix the issue... but the client needs it fixed so this will do for now. Can anyone shed any light on this? We have other sites using older versions of IIS and SQL that do not have this issue. It is only happening on a server running SQL 2008 R2 Express and IIS 7.5.
It is built on the .NET framework v2.0.
Thanks for any insight anyone could give.

Automatically restart Coldfusion service when it goes down [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to restart Coldfusion Application Server when application is timeout?
Currently I have an ColdFusion application that causes server issues. After 1-2 days that serve doesn't respond until a manual restart is done.
I know that I had to find what is going wrong in my scripts and I spend time and time for several weeks.
But pending I would make a script that restart automatically ColdFusion service if it is bugged.
I have not many knowledge in batch script etc.. but I guess that the test would be a request to a .cfm and the response would be serve until a timeout. ?
Has anyone ever met a script like this ?
Config: Win 2k8 Server R2 - Coldfusion 9(.0.0)
Thank you
Two things here
The real way is to fix the issue and you can do that with Fusion Reactor - http://www.fusion-reactor.com/fr/ It will help you monitor and restart and self heal as it needs.
You could create a batch file, and create a Scheduled Task in Windows that ran it.
Using Net Start / Net Stop Commands
net stop "Macromedia JRun CFusion Server"
net start "Macromedia JRun CFusion Server"
Thought this may not always work so I have a batch file:
c:\JRun4\uninstall\KillJRun.exe
net start "Macromedia JRun CFusion Server"
Which works for me.
Your best bet is to use Pingdom or another server monitoring tool. When the server goes down (responds with a 503 error, service unavailable) you may be able to have Pingdom send a response to a PHP script on the server that calls a batch file. I am not sure if Pingdom supports pinging another server is one is down, but you could have Pingdom email to an inbox that your PHP can check every few minutes.
This may end up being more work than figuring out what is wrong with your script though.
Edit: You may want to look at this question. This will only work if the service has stopped, whereas usually when a script crashes ColdFusion it is hanging. If you run the script that crashes the server, then look at the service, if it says stopped, then this may work for you.
The other thing that I would check is the JVM memory. Often times crashes are due to processing large amounts of data from files or the database and the JVM doesn't have the memory to do that.
Nope. It cannot be restart automatically when your CF services/server is hanging. The only one way is to restart by windows schedule.
You could also use Nagios+Plugins to fire a restart script when the service hangs. But following the previous advice & finding out what the problem is is your best bet.