hbouma

Well-Known Member
Jun 8, 2002
60
0
306
Greetings,

Before I open a ticket with cPanel, I've noticed a huge drop in requests per second Apache can handle when its made over SSL. For example:
Code:
# ab -n 1000 -c 100 http://www.testdomain.com/foo.txt

Requests per second:    9909.62 [#/sec] (mean)
Time per request:       10.091 [ms] (mean)
Time per request:       0.101 [ms] (mean, across all concurrent requests)

# ab -n 1000 -c 100 https://www.testdomain.com/foo.txt

Requests per second:    91.27 [#/sec] (mean)
Time per request:       1095.622 [ms] (mean)
Time per request:       10.956 [ms] (mean, across all concurrent requests)
Now I can understand and accept the time per SSL request goes up due to the added overhead, but what I don't get is that I can raise Apache's threads/workers limit to say 300 and increase the number of connections to 200 but the req. per second stays at about 85-90 even though the server remains mostly idle.

My setup is EA4 with MPM-Event. But using MPM-Prefork didn't help either.

Does anyone have suggestions for this or should I just switch to nginx as a front end since it can process over 275 req/sec over SSL.

Thanks!

Hal
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
Hello,

I've moved this thread to our "Optimization" forum.

You may find the discussion on the following thread somewhat relevant:

SOLVED - SSL slow first time

However, generally this type of question will receive more user-feedback on a website such as StackOverflow.

Thank you.