• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Problem Managing Java Applications

FerranVila

New Pleskian
Hi to everyone,

After the last upgrade of my Paralels Panel 11.0.9 CentOS 6 110120608.16 the managing of Java Applications has become imposible.

The loading time of the Managing Pages is about 6 minutes. For pages loading, deploying applications, etc...

There seems to be some kind of problem with management from Plesk and waits for a timeout of tomcat. However, Java applications work correctly :), it is simply a matter of management.
Any ideas?

Thanks in advance,
 
Have you tried looking at the logs while managing to get a clue of the cause? If so, can you paste here the log message ..
 
The slowness in loading sounds like a stress on (tomcat) system resources ..

TomCat is a major consumer of resources on a server. This is why it is not recommended to create too many VDSs which use Tomcat on one server. The solution is to spread them on many servers.

However, there are two ways to reduce the amount of resources tomcat's java resources use:

Limit the number of Java threads.
Limit the maximum Java heap size.

The number of threads already reduced to 5 (maxProcessors prarameter in /etc/tomcat6/server.xml file).

Maximum heap size can be set with -Xmx option of java (-Xmx64m for example). This can be done in tomcat6.conf file for example. The problem with this limit is that user's application can get 'out of memory' error in case it needs more memory, than this limit.

Another point that is important to know : When you are checking the memory usage for java processes - all process of a java tree uses the same memory block, this is why all threads have same amount of memory. For example, if a 'parent' java process uses 120 Mb RAM, then all his N threads show that they use 120M, but the total usage of them all is 120 Mb, and not 120*N.
 
Thanks for the advices abdi!!

I just implemented in my server and the performance increases a little :)

But I think taht this is not the problem, that's true that the server goes around the 80% of the RAM but, even stopping tomcat (40% RAM) this management pages spend the same time to load it (around 6 minutes).
 
Create a ticket @jolis.net and give us instructions of how to reproduce it, I will take a look at it for you for FREE.
 
Back
Top