Get The Number Of Current Connections In Apache Server?
Apr 7, 2014I am interested to know number of current connections in my Apache server
Server version: Apache/2.2.15 (UNIX)
OS : Solaris 5.10
I am interested to know number of current connections in my Apache server
Server version: Apache/2.2.15 (UNIX)
OS : Solaris 5.10
I would like to know what is the maximum number of Apache connections a Server can handle? Does this depends on the Config of the Server? Is it Possible for a server to handle more than 2500 Active Apache connections without timeout / connection failure / slowness?
View 6 Replies View RelatedI am trying to figure out how Apache is working on windows 7 - so far so good - but how do I set restrictions and limitations on bandwidth usage and max number of IP-connections?
View 1 Replies View RelatedI am facing to this trouble: apache max out the number of connections. When viewing status, all I get here
Code:
SrvPIDAccMCPU SSReqConnChildSlotClientVHostRequest
0-028240/6/65R 0.1414290.00.020.32 ??..reading..
1-028170/17/65R 0.111510.00.030.22 ??..reading..
2-028350/3/57R 0.20112210.00.000.24 ??..reading..
3-027570/33/62R 1.431412930.00.130.21 ??..reading..
4-026430/75/75R 2.12153190.00.310.31 ??..reading..
5-026440/52/52R 2.061610.00.240.24 ??..reading..
6-028180/13/60R 0.621600.00.070.22 ??..reading..
7-026490/63/63R 2.84143070.00.370.37 ??..reading..
8-028190/7/43R 0.271610.00.020.27 ??..reading..
9-028080/27/76R 0.361410.00.040.29 ??..reading..
10-026750/50/52R 2.9617630.00.260.26 ??..reading..
11-027720/23/49R 3.641600.00.100.19 ??..reading..
12-026620/64/64R 2.201520.00.290.29 ??..reading..
13-027730/25/64R 1.121500.00.140.19 ??..reading..
which account on server is the reason please? I am on CentOS box with DirectAdmin.
My Customers and I have Problems connecting to IMAP-Server. By moving through IMAP Folders I get the Massage "Unable to connect to your IMAP server. You may have exceeded the maximum number of connections to this server"
I know this Article: [URL] ... and all the other related to this issue.
[Code].....
I want to know the right command by which one can see current connection to the HTTP server.
I searched a while and got 2 different answers, wanted to know which is more accurate as there is lot of difference in results
Code:
-bash-3.2# ps aux|grep -i HTTP|wc -l
19
-bash-3.2# netstat -an|grep :80|wc -l
228
I am seeing huge connections in my server. I run netstat -anp and see 290 conections from IP 10.0.77.54:
===
root@server01 [~]# netstat -anp | grep 10.0.77.54 | wc -l
291
root@server01 [~]# w
===
What means this IP and this huge connection number?
Can I check what is the maximum number of connections for Remote Desktop Protocol in say W2k3? Also anyway to increase that? This question has been bugging me for a long time.
View 3 Replies View RelatedWe have a lot of users on IMAP but many are randomly getting disconnected.
How do we increase the max number of allowed concurrent IMAP connections?
I administer an Apache server under unix environment SunOS 5.10,I want to know the number of clients connected to my apache server
View 7 Replies View RelatedI'm new to fcgid on Windows. my current set up is as follows;
Windows Server 2008
Apache 2.4.4
PHP 5.3.27 (fcgid)
MySQL 5.6.14
1. Looking at windows task manager, each of my processes have 4 threads each. What does this mean?
2. Does the number of FcgidMaxProcesses x memory_limit = Total amount of memory required?
3. Number of Threadsperchild = number of FcgidMaxProcesses ?
I just want to know how these two work together.
Webserver is restarted all TCP connections randomly. we are not able to get any error into errorlog file.
Webserver close all TCP connection and start created new TCP connection for new request.
AcceptFilter http none
AcceptFilter https none
Also, conf file is saying that
Defaults Values are:
EnableMMAP On
EnableSendfile Off
Not sure what's wrong with server.
We have installed "Apache 2.4.6-x86 server" on Win 2008 R2 Standard server (64-Bit).
Also, we are using mod_jk module for connecting to tomcat server "tomcat-connectors-1.2.37-windows-i386-httpd-2.4.x.zip".
Is it possible to get current CPU usage from mod_status on Windows? I thought it's ExtendedStatus On directive required but still no CPU usage.
View 7 Replies View RelatedI'm new to Private Virtual Server and the package offered by different company are quite confusing.
I was on RackForce and their basis VPS package dds200-L can host 100 domain names on Plesk and unlimited domain names on WHM/Cpanel.
On 1and1 it didn't say if Plesk support 100 or unlimited domain names. My question is, do we always have the liberty to host unlimited domain names on our PVS?
Can anyone recommend a good VPS hosting company?
I have small issue with load speed of pages when number of apache running processes goes over +-310, during peak traffic of day. IE: They load really slow.
Here's pic of what I mean:
=> [url]
Only thing that fixes it temporarily (at least until peak traffic ends) is to stop either httpd or mysql for several seconds, as everything cools down, then start it back up. Stop/starting mysql usually has longer terms temporary fix.
Anyway, would you have any ideas on what to configure or change within the system in order to keep the processes under 300?
The load is normal. Even at load 40, pages are blistering fast, as long as processes are under 300. So it's got nothing to do with load.
I implemented a Reverse Proxy using apache2 v. 2.4... What i need to do is limit number of sessions against a Virtual Host. Is that possible?
View 13 Replies View RelatedI use url http://myurl:8020/ERC to access application and I am able to. But I dont want to use port number in the URL.Would like to access application using http://myurl/ERC . I referred to one of the post and added below entries to httpd.conf file.
ProxyRequests Off
ProxyPass /ERC http://myurl:8020/ERC
ProxyPassReverse /ERC http://myurl:8020/ERC
But I am still not able to access http://myurl/ERC.LoadModule entries are enabled and I have restarted apache.
Cpanel have option for compile with limit number access from IP via apache?
I want earch IP can access 5 conection in apache.
Via cpanel is possible?
I have installed apache 2.4.10 with tomcat-7 as backend .Proxypass has been added in apache to access tomcat via http port .now requirement is to restrict each Context to 100 sessions only , how i need to achieve this .
View 1 Replies View RelatedIs it possible to limit the max number of concurrent access to an url?
Let's see the following example: URL...
/a1 concurrent access should be limited to for example 20.
While we have an other url:
https:/ssss.com/a2
/a2 should be limited to 30.
Is it possible to do it with some apache config?
Just logged in my cPanel, and Apache Server Status shows
Parent Server Generation: 7
Server uptime: 2 hours 52 minutes 5 seconds
Total accesses: 701666 - Total Traffic: 63.7 GB
CPU Usage: u1610.22 s255.4 cu0 cs0 - 18.1% CPU load
68 requests/sec - 6.3 MB/second - 95.2 kB/request
400 requests currently being processed, 0 idle workers
I told customer service and said my website (a big forum) have 4000 people now, I felt very slow, could the slowness caused by this max apache connection setting?
I got reply: "400 seems to be as high as Apache can go. Your httpd.conf settings currently show 500 max connections enabled. If Apache is stopping at 400 then this is it's hard limit for maximum connections. Also If it was able to go even higher you would eventually run into memory issues on the server that would cause the server to crash."
Can anyone tells me if "400 requests currently being processed, 0 idle workers " is a problem or could it be the cause of the slowness. I imagin if more people request connection, and apache can't deal with that much, it has to let those request wait in the queue, therefore caused slowness or time-out.
The seem server could deal with 8000 people online before, no any problem at all and speed was quite fast. I don't know what i should do now.
is a way to understand whats the bext max apache settings for me?
Maybe to look over httpd-status requests currently being processed and the number of idle servers or the number of strokes?
Or probably the best way is to use some benchmark application but then i am not sure how to test my config?
I currently have a dedicated server with the following specs:
Celeron 2.6ghz
2gb ram
100mbit connection
the cpu load is always under 0.7, and I always have at least 400mb of free ram.
The site takes about 5-10 seconds to load a test page with just a single word on it. When I type netstat -n | grep :80 | wc -l
I get around 1100-1200 connections. I get about 130k page views per day.
My site is about 95% static html, it has about 150 images per page. How can I speed up my site?
Here are my apache httpd.conf settings:
Timeout - 100
KeepAlive - on
KeepAliveTimeout - 12
StartServers - 48
MinSpareServers - 32
MaxSpareServers - 64
MaxClients - 1500
MaxRequestsPerChild - 1000000
Have to type the full address with port number....
View 4 Replies View RelatedI am attempting to install Apache HTTPD on a PC running Windows 7 Ultimate SP1.
VC9, VC10 & VC11 redistributables are installed.
When I attempt to start Apache - both from the command line and as a service - I receive the following error messages:
[Tue Aug 27 15:33:27.624800 2013] [mpm_winnt:notice] [pid 5192:tid 284] AH00455: Apache/2.4.6 (Win64) configured -- resuming normal operations
[Tue Aug 27 15:33:27.626800 2013] [mpm_winnt:notice] [pid 5192:tid 284] AH00456: Apache Lounge VC11 Server built: Jul 15 2013 20:45:22
[Tue Aug 27 15:33:27.626800 2013] [core:notice] [pid 5192:tid 284] AH00094: Command line: 'C:Apache24inhttpd.exe -d C:/Apache24'
[Tue Aug 27 15:33:27.667800 2013] [mpm_winnt:notice] [pid 5192:tid 284] AH00418: Parent: Created child process 7684
[Tue Aug 27 15:33:27.668800 2013] [mpm_winnt:debug] [pid 5192:tid 284] mpm_winnt.c(422): AH00402: Parent: Sent the scoreboard to the child
[Tue Aug 27 15:33:27.704800 2013] [:crit] [pid 7684] (-2146173818)Unknown error: AH00141: Could not initialize random number generator
[Tue Aug 27 15:33:27.709800 2013] [mpm_winnt:crit] [pid 5192:tid 284] AH00419: master_main: create child process failed. Exiting.
[Tue Aug 27 15:33:27.710800 2013] [core:info] [pid 5192:tid 284] AH00096: removed PID file C:/Apache24/logs/httpd.pid (pid=5192)
The Windows event viewer merely says that HTTPD stopped with an application-specific error #1.
I have also tried with SSL both enabled and commented out.
For what it is worth the message appears to be generated by the routine ap_init_rng in the server core.c module.
I am attempting to add a header to a number of requested urls i.e. domain/feeds/chicago, domain/feeds/*.I understand that this can be achieved by
•using mod_rewrite to set an environment variable
•using mod_headers to add a header based on the existence of an environment variable.
So far I can add the a new header thus Header add RSS_FEED_URL "Akamai-Edge-Control"
whats the easiest way to monitor the number of apache connections?
View 9 Replies View RelatedI have had 2 drives fail on me in 2 weeks, and had to completely redo my server's configuration and security.
I would like to tell my tech to make an image of the current server, just so that the firewall and settings are all saved, and can be restored if this happpens again.
How should I go about doing this, and what can I tell my tech to do so that he does this in the best, most efficient way?
I have 2 live websites on there now (not an insane amountt of traffic), so I am assuming the sites current state will be in the image, which I don't mind, as I can just restore a recent site backup if the site happens to go down again.
Please let me know your thoughts!
( i am assuming i should try to delete as much junk off of the server as possible to make the image smaller)
Our web server encounter a problem lately, that an IP address in India repetitively sent requests that uses up all connections available in Apache. All connections appear to be in W state. The connections are not terminated by Apache even though timeout has been set to lower 30 seconds. Similarly, MySQL connections also are not dropped until Apache is restarted.
View 7 Replies View RelatedI've got an older "Super Server P4" series server @ ThePlanet - it's been a great box for years. We recently upgraded php4 to php5 and did a mysql upgrade as well. Ever since, randomly, without warning, Apache stops terminating connections, so the max connections fills up, and httpd won't respond. Apache doesn't stop running, it just max's out and stops accepting new connections, so customers assume the server is "down", although email/FTP work fine.
The server never crashes, the loads stay down, but httpd just fills up and won't accept more connections. We can't increase max connections (we actually DECRESED IT), because they'll just keep piling up, never terminating, and then ultimately, it will crash the box.
My admin has worked for nearly 2 weeks trying to figure it out, and Scott (AtomicRocketTurtle) and his team have been evaluating it for about a week - it's happened 3x in 2 days ... last night, httpd quit responding for about 7+ hours and since we didn't have httpd monitoring, we never knew until the office opened this AM and I had two very angry customers. Scott suspects it may be some rogue application that triggers it that didn't affect it prior to the php5/mysql upgrades.
Both Scott and Parm, my admin, have about thrown in the towel and are recommending we retire the server and migrate to a new box.
It's older - much older .. I'm pasting specs below, RHEL3, Plesk 7.5 .. but just wonder, before retiring an old server that was RUNNING GREAT prior to the upgrade, maybe someone has seen this happen before?
If so - PLEASE LET US KNOW before I spend the $$$ on a new box.
Current box's specs:
CPU GenuineIntel, Intel(R) Pentium(R) 4 CPU 2.80GHz
Version psa v7.5.4_build75060118.18 os_RedHat el3
OS Linux 2.4.21-47.0.1.ELsmp
RAM: 1GB, with 2GB swap
apache 1.3.31
bind 9.2.4-20.EL3
coldfusion Component was not installed
coldfusion-support 7.3-2.96.128
courier-imap 3.0.8-rhel3.build75050824.12
drweb 4.32.2-rh7_psa
drweb-qmail 4.32-rhel3.build75050824.12
frontpage 5.0.2.2634
httpd 2.0.46-61.ent
jdk 1.4.2
logrotate 3.7
mailman 2.1.5.1-25.rhel3.7
mod_perl 1.99_09-10.ent
mod_python 3.0.3-5.ent
mysql 4.1.21-2.rhel3.art
perl-Apache-ASP 2.57-rhel3.build75050824.12
php 5.0.4-13.rhel3.art
phpmyadmin 2.5.3
phppgadmin 2.4.2
postgresql 7.3.6-7
postgresql-server 7.3.18-1
proftpd 1.2.9
psa 7.5.4-rhel3.build75050824.12
psa-agent 1.3.2-2_psa7.1
psa-api-rpc 7.5.4-rhel3.build75050930.11
psa-bu 7.5.4-rhel3.build75050926.17
psa-horde 3.0.5-rhel3.build75050824.12
psa-imp 4.0.3-rhel3.build75050824.12
psa-logrotate 3.7-rhel3.build75050824.12
psa-manual-custom-skin-guide 7.5.4-rhel3.build75050824.12
psa-migration-manager 7.5.4-rhel3.build75050930.11
psa-proftpd 1.2.10-rhel3.build75050824.12
psa-qmail 1.03-rhel3.build75050824.12
psa-qmail-rblsmtpd 0.70-rhel3.build75050824.12
psa-spamassassin Component was not installed
psa-tomcat-configurator 7.5.4-rhel3.build75050824.12
psa-turba 2.0.3-rhel3.build75050926.17
qmail 1.03
rblsmtpd 0.70
samba 3.0.9-1.3E.12
spamassassin 3.1.3-1
SSHTerm 0.2.2-rhel3.build75050824.12
stunnel 4.04-4
tomcat 4.1.24-full.2jpp
webalizer 2.01_10-15.ent
any good rule to limit Apache (port 80) connections from 1 IP to 15 with iptables/csf?
And total connections to the box to 100?