Re: Reducing load for LAMP app?



Jerry Stuckle wrote:
In fact, I find it's more often assumed to be on the same server when not specified.

the overhead of making a connection - especially on a local machine
- is small..

the problem is not related to database - but general resource shortage.


Interesting and valid points all around. I'm glad you were able to help the OP. Many of my assumptions about his situation were incorrect.

Memcached was not a helpful suggestion here, but I still think that apc is helpful in most situations. Even if memory is short - a smart opcode cache won't particularly hurt memory use. In fact, it may even help - instead of compiling the code (into memory, I might add) separately for multiple concurrent requests, suddenly there is already a compiled copy in shared memory that can be utilized. True, there may be less memory used when the server is completely idle - but that is not particularly helpful, right? Before denigrating it, I suggest you try it out on one of your applications; it might surprise you.

I stand by my conviction that explicit caching is a good idea more often than not, but then I rarely work with a single-server (or significantly memory-bound) environment so maybe it's my lack of experience there that's distorting my perception in your view.

In any case, I appreciate the discussion.

Jeremy
.



Relevant Pages

  • Re: Memory usage and large number of pages
    ... The problem is the overhead of compiling these pages is huge - and because ... have also found that for each file that is compiled the memory increases. ... >> directory on the web server. ... >> returns the result of this page back to the client. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: virtual memory exhausted: Cannot allocate memory
    ... virtual memory exhausted: Cannot allocate memory ... I did this and tried compiling jdk15 again but it made no difference. ... memory available is to increase the amount of swap memory available ...
    (freebsd-questions)
  • virtual memory exhausted: Cannot allocate memory
    ... gmake: Leaving directory ... virtual memory exhausted: Cannot allocate memory ... I did this and tried compiling jdk15 again but it made no difference. ...
    (freebsd-questions)
  • Re: Mac mini OK for development?
    ... The common complaint about GCC's excessive RAM usage is widespread and well- ... I'll grant you, the problem is most prevalent when compiling C++ code, ... whole-program optimization is very costly." ... "The size of header files directly affects gcc's memory use, ...
    (comp.sys.mac.programmer.help)
  • Re: virtual memory exhausted: Cannot allocate memory
    ... gmake: Leaving directory ... virtual memory exhausted: Cannot allocate memory ... I did this and tried compiling jdk15 again but it made no difference. ...
    (freebsd-questions)