W
W
weranda2014-01-20 11:34:50
MODX
weranda, 2014-01-20 11:34:50

How to reduce server response time for a site on ModX? How to speed up ModX?

Greetings.
For the test, let's take two pages of the site:
1. Regular site page running on CMS Modx
2. Duplicate of the first page in html on the same domain
The problem occurs at the page preload stage (the first server response) in ModX.
Average waiting time for preloading (the first server response (maybe I'm confusing it)):
1. ModX - 500 ms
2. Duplicate html - 5 ms
Screenshots showing the page loading timeline:
ModX
emjoeHlSbdon0TOAajEVKgURIiE3GU4-kDbBQTFiHTML
-nNhZUrlxI_cKiS7mJUuI8ZggJmanZU474lN0JA5
Tens of times difference is too much. I assume that during 500 ms ModX thinks something there. Server/Caching/Headers seem to be configured normally.
Is it possible to make ModX think faster, what needs to be done for this? For such a response time does not suit me at all. Let's think together. If the implementation of ModX acceleration is very labor-intensive and simple advice from you cannot solve it, then I am ready to discuss the conditions for compensating for the time spent on helping in this matter.
Background information:
1. Site hosted on VPS KVM (2 CPU Intel Xeon / 2 GB RAM)
2. 33 requests per page
3. NginX in front of Apache
4. NginX gzip_module enabled
5. All possible snippets and chunks cached

Answer the question

In order to leave comments, you need to log in

5 answer(s)
B
bezumkin, 2014-02-10
@bezumkin

400ms is the page generation time in PHP. You need to compare not with HTML, but with another engine, or a php script.
For example, Hello Word output on pure php: Output on a freshly installed MODX Revolution with a standard template: PhpMyAdmin login Total : Pure php - 2 ms MODX - 15 ms PhpMyAdmin - 40 ms I check on a virtual machine, there are no delays from the network. We can say that the minimum MODX page generation time is ~ 15 ms, all that you have on top is you cheated by calling snippets, chunks, etc. + network operation. The network cannot be optimized, so you need to take and look at what time is spent on when generating a page. At a minimum, display the placeholders 0.0406 s, 4 and 0.0004 s.

W
weranda, 2014-02-10
@weranda

Any ideas on how to reduce this time?
Displayed placeholders, results:
0.0406 s = 0.2834 s
4 = 8
0.0004 s = 0.0014 s

V
Vlad Zhivotnev, 2014-01-20
@inkvizitor68sl

The disk subsystem is not stupid?

D
Dumb, 2014-09-25
@Dumb

Glue all CSS and JS together and compress them

R
Roman Ilyin, 2016-12-27
@GeForester

Try diagnosing with the free DebugParser plugin. It allows you to identify and optimize slow calls on every page

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question