Re: {Spam?} Re: Cannot start Spyce 2.1-2 web server

"Jonathan Ellis" <[email protected]> Sun, 03 Sep 2006 07:16:32 -0700
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
It looks like your VSZ has a buggy count of memory used by threaded
processes -- each thread = about 10k, which is not actually the case,
since you will remember that one point of threads is they all share the
same memory.  I'd find a host that doesn't do that -- even if I patched
2.1 to have a threadless mode like 2.0, it would be basically useless
for production since any slow request will block everyone else from
using your app.  I'm pretty sure westhost.com doesn't, for instance, but
it's been a while since I used them (switched to a dedicated machine).

-J

On Sun, 03 Sep 2006 17:35:36 +0800, "Andy Sy" <[email protected]> said:
> Jonathan Ellis wrote:
> 
> >> Very sorry about that, but apparently the VPS I'm using has 64MB not
> >> 128MB of memory, so it would be more like ~40MB free is not enough to
> >> start up the 2.1 web server, not ~100MB.
> > 
> > Are you sure there are no per-process limits of some kind?  A bare Spyce
> > server should be well under 10 MB.
> 
> I've verified on a different machine that the 2.1 Spyce server (with
> minthreads=maxthreads=maxqueuesize=1) only occupies a couple or so
> MB more than the 2.0.3 one based on "Mem:" numbers in 'top'.
> 
> However VSZ is much bigger, so I guess this may have something to do
> with the OS or Python having to allocate more VM pages when starting up
> 2.1?  Perhaps it's time to try out Xen-based hosting which seems
> to have swap space allocations instead of OpenVZ-based ones...
> 
> 
> Here are the numbers I'm getting on a different machine:
> 
> 
> Spyce 2.0.3 ps aux output
> -------------------------
> 
>           VSZ   RSS
> root    15964  5436 /usr/bin/python -u spyceCmd.py -l -d
> /var/run/spyce.pid
> root    15964  5436 /usr/bin/python -u spyceCmd.py -l -d
> /var/run/spyce.pid
> 
> 
> Spyce 2.1 (minthreads=maxthreads=maxqueue=1)
> ----------------------------------------------------------
>           VSZ     RSS
> root      26896  7204 /usr/bin/python -u spyceCmd.py -l -d
> /var/run/spyce.pid
> root      26896  7196 /usr/bin/python -u spyceCmd.py -l -d
> /var/run/spyce.pid
> root      26896  7196 /usr/bin/python -u spyceCmd.py -l -d
> /var/run/spyce.pid
> 
> 
> Spyce 2.1 (minthreads=5, maxthreads=10, maxqueue=50)
> ------------------------------------------------------------------
>           VSZ     RSS
> root      59664  7204 /usr/bin/python -u spyceCmd.py -l -d
> /var/run/spyce.pid
> root      59664  7196 /usr/bin/python -u spyceCmd.py -l -d
> /var/run/spyce.pid
> root      59664  7196 /usr/bin/python -u spyceCmd.py -l -d
> /var/run/spyce.pid
> 
> 
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Spyce-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/spyce-users
-- 
C++ is history repeated as tragedy. Java is history repeated as farce.  --Scott McKay


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642