lamp performance


 
Thread Tools Search this Thread
Top Forums Web Development lamp performance
# 8  
Old 10-14-2008
See this thread, install the programs and post the results:

https://www.unix.com/web-programming-...#post302220677

Also, post your apache2.conf and my.cnf configuration files, plus post your OS, stats (RAM, CPU) and the output of top, etc.
# 9  
Old 10-15-2008
Neo,

I was trying to do some "manual" benchmarking with Apache's flood, but even though I have two instances with 100 threads each, it causes only 4 slave servers to go into the "run" state. Do you know of another tool for load testing?
# 10  
Old 10-15-2008
The only way we can accurately tune this site is on the live traffic over many days. I don't think it is really possible to tune performance very well with tools that flood a server with traffic. I did run ab a few times, but it is really a waste of time. Here is the link:

ab - Apache HTTP server benchmarking tool - Apache HTTP Server

The trouble is that tuning requires setting many parameters over time, like key buffers, query cache, timeouts, max connections, etc. So many parameters and each parameter is different.

I noticed the other day that someone ran a flooding tool against this site, because we reached maximum connnections, which only happens when a flooding tool is used :-) Please do not do this. Why? Because it completely ruins the tuning analysis. Flooding is not real traffic and it is not even close to helpful.

In other words, what happens with flooding tools is so different than with real world LAMP.

There is some good reading on the net, for example:

Tuning LAMP systems, Part 3: Tuning your MySQL server

But even these recommendations are only useful as background reference, because each site is different, the hardware is different, the traffic is different, the database queries are different, the JavaScript is different, etc etc.

I used to read all of these, and they are useful; but at the end of the day, LAMP tuning is based on knowing the system details, hardware, software, database structure, traffic pattern, query pattern, load etc. Tools cannot come close to simulating the real traffic (load, queries, timeouts, dropped connections, etc), especially on a site like this.
# 11  
Old 10-16-2008
I post in the wrong thread but can't delete my post !!

Sorry.
# 12  
Old 10-16-2008
No that was the good one but sone post came in i didn't see before.

I manage to prevent system from crashing out of swap with mpm tuning.

I am still not happy with these typo3 page but I guess I cant do so much from system point of view.

Thanks all for your good advices.

PS : I use mysql tuning-primer.sh and it looks happy with my config.
# 13  
Old 10-16-2008
If the typo3 page is the same for most users and does not depend on session-specific or IP-specific data, I think squid will help. Like I said, you can use mod-rewrite to go to squid if there's session/cookie data, and to typo3 if there isn't.

Glad you're not crashing, anyway Smilie
# 14  
Old 10-16-2008
Quote:
Originally Posted by manifesto
PS : I use mysql tuning-primer.sh and it looks happy with my config.
Don't forget to also run mysqltuner.pl

Normally, I run both and compare the results.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

LAMP Sever

How do I install a LAMP server on a new installation of Debian 9 using the lalest versions of AMP? Here is what I have. Corrections please. MYSQL apt-get install mysql-server mysql-client You can verify the MySQL server status using command: systemctl status mysql ------- PHP7... (0 Replies)
Discussion started by: Meow613
0 Replies

2. Red Hat

Setting up LAMP environment

I wish to setup LAMP environment. Amongst, I have successfully installed Linux 6.1. I am looking fwd to install - Apace Web Server, My Sql Database & PHP environment. Say if I look for MySql, could see downloadable available in rpm format. But this must be copied over to Linux machine. As... (2 Replies)
Discussion started by: videsh77
2 Replies

3. HP-UX

LAMP Installation On HP-UX

Dear Folks, How to Install LAMP on HP-UX system. Please Guide. Regards, KRISHNA (2 Replies)
Discussion started by: krishna.lu
2 Replies

4. Programming

Lamp tutorial

Hello All, I need a good lamp(linux, apache, mysql, php) tutorial for web development. I searched in net but not finding suitable one. suggest me something. (3 Replies)
Discussion started by: amisubha
3 Replies

5. Web Development

Building LAMP server from scratch (build a server with compiled LAMP from CentOS mini)

Hello everyone, I would like to setup a lamp server from a minimal distro and to compile PHP, MySQL and Apache myself. I have chosen CentOS minimal for the OS and I am trying to build the stack by hand... But well, it appears I need some help! First: I am looking for good and recent... (3 Replies)
Discussion started by: freddie50
3 Replies

6. Solaris

Need LAMP tutorial!

Hello Everybody, Does anybody know or recommend me a tutorial for LAMP server on Solaris 10 x86? (3 Replies)
Discussion started by: ahmedamer12
3 Replies

7. Web Development

LAMP - version updates and the impact!

Hello All, I have a LAMP server (CentOS 5.5) which has a lot of php scripts and the php pages runs fine. My question is if I have to allow the OS udpates regularly on the server, will there be any problems in running the existing php scripts? Please advise if my apache/mysql/php functionality... (3 Replies)
Discussion started by: ilan
3 Replies

8. UNIX for Advanced & Expert Users

LAMP Server Failover

How does everyone else handle this? My Setup: Server A: CentOS 5.x 10.0.0.1 Apache MySQL Master Server B: CentOS 5.x 10.0.0.2 Apache MySQL Slave My Domains: dom1.com A record: 10.0.0.1 A Record: 10.0.0.2 dom2.com A record: 10.0.0.1 A Record: 10.0.0.2 (3 Replies)
Discussion started by: Ikon
3 Replies

9. UNIX for Dummies Questions & Answers

LAMP configuration

Hi there, I've got a debian 3.1r4 half working (no x yet :P) I need some pointers for installing a Apache - MySQL - PHP configuration on my box, and set them up to work together. I know to use vim a bit :) I would like something that is similar to tanguay.at, or even simpler, since I'm a real... (1 Reply)
Discussion started by: izua
1 Replies
Login or Register to Ask a Question