开发者

Performance Zend Soap Service on LAMP

I have developed 2 soap webservices in my zend application. In my development environment (MAMP on mac 8 GB ram i7 processor) the performance is really good. When I deploy it on my Ubuntu LAMP server (1 GB RAM 1 processor) the performance decreases a lot. Its more than 10 times slower.

I have a java client (eclipse autogenerated client from wsdl) The problem is that the first call is always 4 times slower than the second one. This goes for both my MAMP and LAMP.

MAMP - First call 400 ms - Second call 100 ms

LAMP - First call 2 000 ms - Second call 400 ms

I simply duplicate the request so the request is exactley the same for the first and second call.

If I manually run the LAMP client several times the first call will be done at around 900 ms. It feels as if the Zend application has to "startup" something during the first call.

Does anyone have any clue on how I can get around this? What I've tried:

Thanks in advance!


This performance issue often occurs when you use Zend_Soap_AutoDiscovery for wsdl generation. If that is the case for your code, you should consider storing your generated wsdl as a separate xml file and load it in the Zend_Soap_Server constructor.


This looks like a problem with opcode cache. Without opcode cache, Zend's really slow. And it gets a ncie boost when using it.

I'd look for Zend Optimizer, eAccelerator, or simillar...

That would be why it slows down after some idle time (classes/files are wiped from IO cache).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜