Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 am running a tomcat 4.1.29 in the remote linux server. The no of user using this website was increased from 2000 to 5000 so the now the server goes down when large no of people accessing the website. i am running another tomcat 5.0.28 service for the testing and mysql 5.0.18 for the database. i came to here about the capacity planning for this linux server with your help.
The output of top cmd:
I think i have explained well. so plz kindly help me to figure out how to do the capacity planning and say your suggestion about the output.so it can be helpfull for me to proceed.
I think that before you go into any capacity planning you should thoroughly understand what you're dealing with. I hope these questions can serve as a lead for that:
You say "server goes down when large no of people accessing the website" but you don't show any client and server-side details about that. Does the server or the service become unresponsive or slow? (BTW, your 'top' output is partial as it only shows system processes.) Does it crash to the point where you have to power cycle it? What do the system logs say? What was done to the system to configure it to run with non-default values? Do you run any form of resource monitoring like Atsar or SAR? Do you run any form of service monitoring like Monit? You can run Tomcat but it's "just" a server. How is Tomcat configured? What does Tomcat serve? Is the .jar stuff production ready? Does it allow for (verbose or debug) logging to help TS this? How about placing a proxy in front of the webserver? Could that lighten the load?
we don't have any monitoring tool in this server and the free space available in ram is [root@admin ~]# free
total used free shared buffers cached
Mem: 1034352 1021400 12952 0 137684 178488
-/+ buffers/cache: 705228 329124
Swap: 2048276 253956 1794320
can you help me to fix the problem why the system is getting slow. say what are the things i have to show you and just teach i am new to this topic and help me to solve this crirical position where this work is assigned to me to solve with in monday. please
Let me see if I understand this correctly: You have a Quad Xeon 2.8 processor system with only 1GB of RAM? The money on those extra processors would have been better spent in some RAM chips. But that's beside the point.
Was the Tomcat server even running when you pulled that "top"? Try it again under load. If this was taken under normal operation, there should be something in /var/tomcat{v}/logs (unless that was changed to somewhere else) because you're not touching either RAM or processor here and only have 1 running process.
Quote:
Originally Posted by unSpawn
You say "server goes down when large no of people accessing the website" but you don't show any client and server-side details about that. Does the server or the service become unresponsive or slow? (BTW, your 'top' output is partial as it only shows system processes.) Does it crash to the point where you have to power cycle it? What do the system logs say? What was done to the system to configure it to run with non-default values? Do you run any form of resource monitoring like Atsar or SAR? Do you run any form of service monitoring like Monit? You can run Tomcat but it's "just" a server. How is Tomcat configured? What does Tomcat serve? Is the .jar stuff production ready? Does it allow for (verbose or debug) logging to help TS this? How about placing a proxy in front of the webserver? Could that lighten the load?
Try answering some of these and then maybe we can help you. Especially these three:
Does it crash to the point where you have to power cycle it?
What do the system logs say?
What was done to the system to configure it to run with non-default values?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.