Alfresco community on Tomcat starts very slowly

We are currently testing the Alfresco community on an old server (only 1 GB of RAM). Since this is a community version, we need to restart it every time we change the configuration (we are trying to add some features, such as previewing DWG files, etc.). However, restarting takes a very long time (about 4 minutes I think). This is probably due to the limited amount of available memory. Does anyone know some features or settings that can improve this restart time?

+4
source share
3 answers

As with all performance issues, a magic bullet rarely appears.

Pressure in memory - the application starts, but a heap of 512 m in size is only enough to fit the applications, and spends half the time the GC starts.

Look at one of the following: 1. -verbose: gc 2. jstat -gcutil 2. jvisualvm - a much nicer interface

You are trying to see how much time is spent on the GC, look for many complete garbage collection events that do not return most of the heap, i.e. 99% → 95%.

The solution is more heap, and nothing more for him really.

You might want to try -XX: + AggressiveHeap to get the JVM to use the maximum memory in the box, only the problem is only 1 GB of memory, which will be limited. List all JVM parameters

Disk IO - the box itself does not start at 100% CPU during startup (assuming that 100% of one core, the launch is usually single-threaded), then there may be some IO disk that the application does this is the throat of the bottle.

Use operating system tools, such as the Windows Performance Monitor, to test disk I / O. Perhaps this is not an application, as a result of which the IO may be a swap operation (page error)

Solution: either fix the application (not likely), or get a faster disk / computer or more physical memory for the window

+4
source

Two of the most common reasons Tomcat boots slowly:

  • You have many web applications. Tomcat takes some time to create a web context for each of them.
  • Your webapp has a large number of files in the web application directory. Tomcat scans web application directories at startup
+1
source

also look at java performance tuning whitepaper , then I recommend you Lambda Probe www.lambdaprobe.org/d/index.htm to make sure that you are satisfied with your gcc settings, it has good gcc and real-time tracking for tomcat.

I have Alfresco working with example 4.2.6 from the java performance tuning specification:

4.2.6 Setting example 6: setting low pause times and high throughput

Memory settings are also very well described in this article.

view of the Mahatmanich

+1
source

Source: https://habr.com/ru/post/1302347/


All Articles