Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have problems with a production system using a LAMP distribution.
The clients connect to the front load balancer LVS with 3 to 5 apache servers backside. Each request is served by php scripts (web services) that connect to the mysql database server. My clients upload analog signal samples files of about 100k each at a maximum rate of about 180 per sec and extract them later at about the same rate.
With a hight workload, with more clients the entire system can have bad response times (eg more than a sec) and sometimes the load balancer or the apache servers freezes themselves. Sometimes the database claims it has too many connections.
Have you ideas of where I must direct my searches ?
looks like it's time to start a sniff. Several ways - if you get lucky and are sniffing your session and get the hang, can you post the tcp dump around the hang and maybe something will stick out? Unless someone else has an idea, but that's where i would go...
The entire system is in a managed hosting service and I am not allowed to make tcpdumps on it.
From the client side we can note that the communication could'nt be established on the requests when the system begin to freeze, yet I can access with a SSH connection to each element of the system, it's like the apache servers refuse to accept new requests.
The hosting service staff made some basic tcpdump not showing infrastructure problems (with our heavey traffic they can't record all packets with tcpdump). They also look at their switches monitors, all parameters seems ok, and don't show any bottlenecks.
Since the last post I have tried to analyse the database activity before the problems and the response times to queries tend to increase.
Also I can see "Too many connections" messages in the syslog of the database coming from memcache.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.