How to configure apache tomcat to render pages fast [closed]?

Consider in this case adding a gzip encoding to your output and compress the data before sending, thus lowering the transfer time. Are you accessing a lot of static files in your app (e.g. Images, css)? In this case, could it be that the access to the file system is slow?

If your resources are on a file system that is heavily used, try to move them onto a different disk -- or even better have a standard apache (not tomcat) server serving the static content.

Thanks for the suggestions. In my application I have very less jsp's. Its more with servlets and java scripts.

I have the Linux machine in my local network and I expect it to perform like my Win machine. Is my expectation wrong here? Mysql is performing fast and even the jdk version is same – Nandish A Apr 26 at 11:15 ok if it's in the same LAN as your windows machine then your expectation is correct only in terms of network access -- so say a 10Kb page should take same amount to download from the windows and linux machine.(I am assuming here that the network interfaces are the same -- e.g. Both 100Mbps -- and also they are truely in the same LAN and not subject to different routing).

– Liv Apr 26 at 11:25 however, as I said before, you need to check your hardward config -- if it is different then you cannot compare apples and oranges. That involves disk, memory, cpu. Also check your software config -- jdk, tomcat, mysql version – Liv Apr 26 at 11:26.

Check if its slow with static content (.html) files too, If it is you should look into installing with with the APR (Apache Runtime Portable). If its not slow when rendering static content then you should take a look at profiling your application to see exactly where the bottle neck is. Is it slow when using the browser on the serving machine pointing to localhost?

If not it may well be that the network is slow rather than the tomcat machine. Really to find out why something is slow you should profile it. You can profile a remote java application using something like yourkit.

Also check all the things that Liv said above.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions