Apache :: Server Becomes Unresponsive With Wsgi Application
Nov 20, 2013
I have Apache 2.2 installed on Windows to host a web2py application using wsgi.
Apache crashed once stating it had run out of worker threads, so I inscreased ThreadsPerChild to 500. It has since crashed/become unresponsive without giving anything in the error log.
I set up mod_status, and am looking for understanding what I see when looking at server-status page.
It says 135 requests currently being processed, 365 idle worker. However I don't think there are 135 people connected.
Here's the request lines:
SrvPIDAccMSSReqConnChildSlotClientVHostRequest
0-1253840/0/0W138495448300.00.000.00
... the line above is repeated identically 125 times
0-1253840/32/32W000.00.460.46127.0.0.1dalgety-svr8.havelock.intGET /server-status HTTP/1.1
0-1253840/0/0W52400.00.000.00192.168.202.109dalgety-svr8.havelock.intGET /HubForms/ProjectFolderIndexing/index HTTP/1.1
[Code] ....
Question:
1) What are those 125 requests, and why are they not exiting. Are they anything to worry about? why is there no Client/VHost/Request? Could they be from the python process? Could they be what's causing the issue?
2) The Acc entry 0/121/121 on /HubForms/capacity_requests/index - is this representative of an issue?
3) When I restart Apache, it typically says "Terminating 375 threads that failed to exit" but that number doesn't match up with anything. Are these the idle threads?
Also I'm not sure what "restart" actually means, i.e. what stops and what stays (i.e. why am I on generation 0-12?).
4) Is any of this anything to do with why Apache becomes unresponsive, or should I be looking elsewhere?
View 1 Replies
ADVERTISEMENT
Apr 11, 2008
Many a times websites hosted on my Red Hat Linux server would not open even though Apache and everthing else is up and running. When i hit reload on browser 4-5 times the website would load or i have to restart Apache and everything starts working normally.
Today when this problem resurfaced i did not restart Apache and looked for in apache logs and saw this strange entry in apache Error Log;
[client my.ip.xx.xx] script '/my/website/httproot/mdqt.php' not found or unable to stat
The above was in apache Error Log, above is my ip address, and i never requested a file named mdqt.php, in fact no file by the name mdqt.php even exist on my entire server.
I then looked for mdqt.php in error logs and saw several requests made for this file and from various IP addresses.
i understand this is what causes my http to die.
View 9 Replies
View Related
Apr 8, 2009
I've run into an issue lately with a few servers that I support and I'm curious if anyone has any suggestions on how to approach the issue?
Scenario:
The server will stop responding to new network connections, I can ping it, but nothing more. When the DC looks at the server, they find the error " Out of Memory " on the console.
What is a good approach to troubleshooting these?
Here is what I do, if I'm off base, I'm here to learn and will read
find / -name "core.*" -ls | egrep core.[0-9]
**try and find software failure
df -h
**validate disk usage
** check /var/log/messages /var/log/dmesg
If I can't find anything obvious in those places, I start digging through the access_logs and error_log to try and find a giant influx of requests that could have hit the server too quickly to process thus filling the memory up.
In this case, I adjust the rlimits.
*shrug* This is not fixing the issue on a few servers and I'm curious how other people approach this problem? Could this be hardware?
View 2 Replies
View Related
Dec 23, 2007
I've been having this problem for the past week: everyday in the afternoon my dedicated server goes unresponsive for about an hour or so--you can FTP into it (upload and download work fine) and access the control panel, but it refuses to serve up any webpages / files through the browser (no one can access my site). Meanwhile the CPU / RAM seems to be just sitting there being completely unused. This problem just starts by itself and then goes away by itself somewhat regularly. Restarting the server has no effect on this.
I'm puzzled as to what the problem could possibly be or how I can fix it--any ideas? My server's running Fedora 6 / GoDaddy control panel.
View 6 Replies
View Related
Nov 3, 2009
Server load is under 1, nearly 0 io.
Ping between 200-300, normally it is around 50.
DC says their network is fine and it is my server.
So load under 1, almost no hard drive access, why is the ping so high?
View 9 Replies
View Related
Oct 13, 2014
whenever one of my customers tries to install an application from the application installer, they get an error that looks like this.
Error: Installation of WordPress at http://*******.com/wordpress failed. Non-zero exit status returned by script. Output stream: 'PHP Warning: mysql_connect(): Access denied for user 'ndari_wordpres_7'@'aeris.jdrepo.com' (using password: YES) in /opt/psa/var/apspackages/apscatalogSTqEEM.zip7b3ca133-9714-5d/cache/scripts/db-util.php on line 66 '.
Error stream: 'PHP Warning: mysql_connect(): Access denied for user 'ndari_wordpres_7'@'aeris.jdrepo.com' (using password: YES) in /opt/psa/var/apspackages/apscatalogSTqEEM.zip7b3ca133-9714-5d/cache/scripts/db-util.php on line 66 '.Click to expand...
View 2 Replies
View Related
Jan 7, 2013
I'm trying to integrate the websocket into existing application.Based on my search, i found a websocket module to do this, but it isn't updated yet. URL...
Any chance that the module will be included in Apache ? Also i found in StackOverflow conversation that Apache httpd wasn't design to maintain persistent connection, is that true ? Using WebSocket on Apache server. Should continue using Apache websocket module or using separate websocket server ?
View 6 Replies
View Related
Feb 12, 2013
I installed apache 2.4.3 in windows server 2003. Since i did not get administrator rights in this machine i could not install as a service.
I runned as an application through the command line console and is working fine.
Is there any difference regarding performance when running as a service or as an application?
Is there any other benefit or drawback of running as a service or as an application?
View 2 Replies
View Related
Sep 7, 2014
After install the ModSecurity Web Application Firewall for Apache no button for manageing module is displayed in plesk.
Installation was successful. How can I repair the button in plesk / webbased manage mod_security?
View 13 Replies
View Related
Dec 5, 2014
I'm trying to perform SSO to my application. for my login i get an error "Size of a request header field exceeds server limit". I believe the header size got increased then the limit set in apache server. I'm guessing so.
the flow of request: Apache -> tomcat -> SAP Business Objects.
For my colleagues login the SSO works fine with out issue.
So, how to increase the HTTP header size. I'm bridging apache and tomcat using AJP connector. below is the AJP connector parameters in server.xml
<Connector port="8009" protocol="AJP/1.3" redirectPort="443" URIEncoding="UTF-8" enableLookups="false" connectionTimeout="20000"/>
View 1 Replies
View Related
Jul 17, 2015
Hosting Settings
There is no php support - so i canĀ“t change or choose running as apache module or cgi application (s. screenshot)...
OS Ubuntu 12.04.5 LTS
Panel version 11.5.30 Update #50, last updated at July 17, 2015 03:46 AM
View 4 Replies
View Related
Oct 12, 2009
I recently purchased a Dedicated Server, and this is the first time I have ever used a Dedicated Server before, although I do have some experience with Linux. The problem I am having is that if you assign an Unused Dedicated IP to a domain using WHM the entire website that is assigned to that IP becomes inaccessible. I am able to ping the Dedicated IP, but that's about it. So the problem is probably that the Dedicated IP isn't pointing to the proper location where the website is, if you use the Server IP everything works fine.
So my question is what do I have to do to fix the problem and point the Dedicated IP to the proper location? Is it something that the Host has to do for you or is it just a simple file edit as root? I am using CentOS 5.3 64-bit as my Operating System with cPanel/WHM as my Control Panel.
View 4 Replies
View Related
Oct 20, 2009
I can't say that I can recommend CheapVPS's (VAServ) services to anyone. In the end of July, I bought a VPS from them.
Had some initial troubles with the set up - they accidently set up 2 VPS's for me and set the wrong amount of memory, but that was solved by sending a support ticket. Wanted Debian instead of CentOS, another support ticket.
In the end of August, I canceled it - mostly because I didn't need it anymore. However, September already came and I was charged for the VPS. I sent a ticket to their billing department asking for a refund, and they gave it to me, no problem there.
I go on with everyday life, until October comes. I guess I forgot to cancel the PayPal subscription for my VPS because I'm charged for it once again. I promptly cancel the subscription and fire off a support ticket.
This time, they're insanely slow to respond to this. I sent a ticket in on Oct 1. and I get a response on the 8th: they ask me for a PayPal transaction ID. I send it to them, and I haven't received any reply since.
On Oct. 15 I tried adding a new comment to my support ticket, but I still have not received any response.
Today, I try to nag their live chat salesperson and they tell me that they've "added a note on my ticket for the billing department".
View 14 Replies
View Related
Jun 10, 2008
Has anyone had any more luck getting a response to either tickets or emails from Burton Hosting since the last thread here, which is months old? Our uptime remains decent, but with absolutely no responses to tickets (we have many outstanding by now) or emails (both to the standard network and support addresses and to individuals personally), and their phones disconnected, we of course are very concerned, and will probably be forced to look for a new host (I just hate the hassle!!) when our contract expires next month.
I did find in another forum posts about a Virante Marketing fiasco in which Burton was falsifying reviews, etc.---this does NOT sound like the Burton I knew before.
While we have exploratory emails out to DreamHost and a few others, I was hoping someone here would know a way to contact Burton---I just hate not knowing!
View 14 Replies
View Related
Apr 15, 2008
I'm currently running some .NET 2.0 apps on a W2003 standard server but am in the process of ordering another server and not sure if I can get by with just a Windows web or Small Business server edition for the OS (because W2003 standard is so ridiculously expensive).
I need to run:
IIS & ASP.NET
PHP
MySQL
And
VB.NET applications
Some 3rd party applications (Mailbee etc.).
Email (POP3)
I don't have any clients accessing the server (all users hit the web app) although I do have about 10 or so POP3 accounts. Other than that I just use remote access or LogMeIn for administration.
View 1 Replies
View Related
May 31, 2009
can you recommend me any good application for linux server monitoring? I need CPU usage, HDD usage, RAM, etc...
View 8 Replies
View Related
Oct 17, 2009
This is my first post here and this sub-forum seems to be adequate for my question. If it is not, I apologize in advance.
I want to create a web application for an upcoming project of mine that has the potential to attract a large number of people. So the web application needs to be fast and secure at the same time.
I used PHP for minor projects for some time now, and although it is really efficient for quick web development, it _appears_ to me like a house of cards waiting to collapse. If you know how to use it properly, it can be acceptable, but there are still numerous security exploits in PHP itself that have surfaced over the last decade. Additionally, it tends to be quite slow and has a lot of bugs that aren't really security related, but can make your life hard. I've run test scripts (that I optimized for web deployment) on my own computer, and even on my own computer which is way faster (in terms of CPU speed, number of cores, RAM, and so on) than most servers, it runs slow--without any database access! And I honestly don't buy the "your server will spend most time in your database anyway, so don't worry about that" statements. I've tested it with databases that have millions of rows in them, and coded a test script that accesses the table and then calculates stuff from that and outputs it. If I comment out the database access the time needed to execute the script is only marginally reduced. I observed the same in my other projects. I also used Python and the problem seems to be the same.
Now, before the PHP/Python fanboy crowd yells at me: "Google uses Python and Wikipedia uses PHP, too". Yes, I know. But they have a lot of money to throw at the problem and can easily add new hardware if needed (Wikipedia alone has collected over 6m USD in the last year from donations). And a Wikipedia staff member I talked to some while ago told me that it's a miracle that Wikipedia is still running given that it is written in PHP with all its security problems (not my words).
So I thought: why not use a compiled language?
The obvious advantages would be that it is faster, and that I can leave out all the junk that is not needed in my case, thereby decreasing the chance of badly written code running in memory.
I have coded in C and C++ for a long time, including security-critical applications. So I absolutely know how hard it can be to write really secure applications, but I think it is also fair to say that I know how to minimize the risk of buffer overflows, validate user input properly, and so on. I often force myself to review my code some time later, in order to spot coding mistakes that you just won't see the first time. Additionally, I've created a neat string library around the standard library that makes string manipulation as easy as in PHP or Python.
So I continued my thinking: why not use C/C++ for your web applications and 'somehow' interface them with your web server?
And that's the problem--the 'somehow interface'. I don't know what to use that won't be deprecated in like 5-10 years from now. CGI seems to be quite okay, but I heard there's a huge overhead due to loading the executable into memory each time a user requests a page. FastCGI seems to be a better solution, but is not as widely supported.
My question is: What interface should I use if I want my web apps to be compiled? CGI, FastCGI, what else? The interface needs to be supported into the far future, it needs to be efficient and fast. And there's also one more important factor: time. Coding the application itself is an acceptable time loss, but if I can only run the app on a dedicated server and have to manage the whole server myself, this can become quite cumbersome. I'd really like to use a solution that can be run on a managed server.
View 9 Replies
View Related
Feb 20, 2007
how i find that wheather the IIS running in my system is application server or webserver. how i defrentiate both visually.
View 1 Replies
View Related
Nov 10, 2008
We're a startup company located outside of the US that's deploying a web application that will be used by our clients in New York City and Boston. We're interested in deploying the app on a couple of strong (2XQuadCore with 4GB RAM each) servers. We're running CentOS and our bandwidth requirements are humble (10-100GB a month). Our application is database intensive. We also need 1G Ethernet between both servers, and a VPN SSL connection to the servers.
This is our first time hosting in the US, what would be the best way for us to go?
1. Buy our own servers and have them collocated to a data center?
2. Go for dedicated servers?
3. Other suggestions?
Other things we should be aware of?
View 10 Replies
View Related
Jun 8, 2014
OSCentOS 5.6 (Final)
Panel version11.0.9 Update #61
The system is up-to-date; last checked at June 6, 2014 03:32 AM
I use pingdom to alert me when sites go down. It would happen only once every few weeks, and I'd just reboot the VPS from my provider's control panel, however in the last 24 hours it has started doing it more and more often. The only change I have made in this time is to delete a few unused web sites.
When I get alerted, I check the the domains and they won't load. I look at the plesk control panel page thought and that does work.
I can SSH in, but I can't see anything that might work in the messages log.
I removed the plesk control panel error as that only seemed to happen once and is not happening anymore.
I saw quite a few entries in the /var/log/secure log and so I added iptables rules to only allow SSH access from my own IP and to DROP all other requests. It seemed fine for a while, but after 12 hours it has started becoming unresponsive again until reboot.
View 4 Replies
View Related
Oct 6, 2009
i developed a socket application to recive data from port.this application recvng data from a unit through port no 4444(Vehicle Tracking unit). this application recvng data and evrything is ok....but some times no anydata is coming in to this application.for eg:if application recves data 2 days after that 2 days it will recve one or two data only....again after 2 days it will recve all data correcly....that means lot of missing data we have....my question is whether this missing data is bse of my socket application or unit?
The manufacturing company telling us unit is sending the data continuiously..but some times this socket application is not recvng data in 2 days interval....i dont know how to solve this issue....is any other setting is required in server to recve data continuously....
i think socket application 100% is ok...unit maufactures telling unit also sending data continuously...then where the problem is???can anybdy share ur idea about this?
View 2 Replies
View Related
Apr 14, 2015
My new plesk 12 windows server was not showing the application vault (even after login as admin user). Hence I have changed the entry enabled = on in the file
C:Program Files (x86)ParallelsPleskadminconfpanel panel.ini as per [URL] ..... Now the application vault is showing well.
My question is, whether this is a new procedure change for Plesk 11/12? I believe, I used to see application vault enabled as default in all my other old servers.
View 8 Replies
View Related
Jun 12, 2007
Windows Application 2003 crashed on RAID 5 server, we tried to take the NTFS files from the hardrive and mount them on a knobix which was booted from a cdrom drive. Knopix could read the files but it was unable to mount them I guess for compatiblity reasons.
Is there anyway we can get a backup of that ntfs file and restore our data?
View 2 Replies
View Related
Apr 29, 2013
We uploaded one .Net application and one Java Web application to Parallels server.
.Net application is configured by default.
Our Java web application has JSPs and Servlets.
With respect to our Java web application we are able to access the JSPs but any request to Servlet is not hitting the Servlet.
We are able to access either static JSP/HTML pages ONLY. But we need to process Servlet requests also.
View 1 Replies
View Related
Jan 5, 2009
I've written an application that acts as a game server for a simple game I'm creating. From what my friends tell me you can't run an exe on a webhost. They did however tell me that you can run java apps on a host that gives ssh access.
View 8 Replies
View Related
Jan 7, 2009
I want to monitor my application to make sure it is 24x7 uptime, if there is anything interrupt, I will be notified by email/SMS right away. There are several web monitoring service, but they all monitor ports, not application. I have bad experience, like, althoguh the web server is alive, but the application is already dead.
So, I want to monitor application instead of monitor a port. Anybody knows where I may find this kind of service?
View 2 Replies
View Related
Jun 17, 2009
One of our customers have a Web Application with Framework 2.0, but many times a day the Application just stop working, if you try to open any file into the application it never answered. We need to restart the Application for solve the problem.
Is posible to know why the application stop working, where can i the logs or something?
View 1 Replies
View Related
Dec 20, 2008
Best monitoring application?
We need a good (best?) network/hardware monitoring application for monitoring our servers located at 3 different datacenters and around 50 servers.. I've founded some programs but they don't cover my needs 100%
Basicly I need these;
- Adding servers easily.
- Adding monitoring channel for each servers. (load, network, disk/ram usage etc..)
- Adding users and attaching users to servers seperately.
(For example I will add justify user and attach him to server1, will add wht user and attach him the server2 and their permissions will be different and they will have no control on other's servers.)
- Web based controller for users/admins
- I want to install it to my windows/linux servers and monitor all remotely..
- SMS / mms / msn / email / icq notifications.
- Ability to post/get notification.
View 11 Replies
View Related
Mar 29, 2007
When I try and run a Rails application, I got this error:
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:406:in `initialize_components': undefined method `first' for :notification_viewsymbol (NoMethodError)
from /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:340:in `initialize'
from /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:616:in `connect'
from /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:645:in `named_route'
from /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:651:in `method_missing'
from /Users/Mike/Documents/dotherightthing/config/../config/routes.rb:2
from /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:625:in `draw'
from /Users/Mike/Documents/dotherightthing/config/../config/routes.rb:1
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load'
... 11 levels...
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:85:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/command.rb:211:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:231
from /usr/local/bin/mongrel_rails:18
How do I fix this?
View 0 Replies
View Related
May 23, 2009
any one using CRM Application to manage their hosting business.. like sugarcrm, salesforce, vtiger, oracle siebel, zoho crm..
if you are using crm, what type of benefits you will get?? how it helps you to grow?
im not talking about helpdesk softwares like whmcs, kayako..
View 4 Replies
View Related
Apr 30, 2008
Which live chat application like kayako,etc is good and cheap price wise too?
Tell me more live chat applications for options?
View 4 Replies
View Related