Beruflich Dokumente
Kultur Dokumente
> running 8 processes with single thread mode, or running 1 process with 8
> threads. Information about Internal structure about performance would be
helpful.>
>
First of all even if you run in prefork (multi-process) mode you still have
a thread pool
per process.
Additionally, each process has its own event loop. In multi-process mode
you have several - one per process.
In future version of CppCMS it is planned to run several event loops per
CppCMS process.
About sharing. CppCMS supports process shared cache, session and other
stuff. However on
the application level you should be aware of it. You run multiple instances
of the
same process so you should be aware of it, for example using some sort of
IPC or shared
resources.
To be honest. I found prefork (multi-process) mode much less useful that I
thought it
would be.
>
>
>4. Dynamic loading .so files
>I saw that cppcms highly recommend to use dynamic loading
> views but I also found that auto update (checking .so
> file's modification date and auto reloading views)
> function may affect bad performance. So, dynamic loading
> views are only good with test mode and static library
> loading is better for production service?
>
> I'm only asking at the aspect of performance. Loading all
> .so files at startup looks much better for performance. I'm
> about to load more than 100 .so view files.