Re: [Zope] Plone-extension freeze plone site

2009-02-09 Thread Andreas Jung
You are running of worker threads. Solution:

- use ZEO
- use a dedicated ZEO client for long-running requests
- increase the number of worker threads in your zope.conf

-aj

On Mon, Feb 9, 2009 at 13:07, TrashMan  wrote:
> Hi,
>
> i've a big issue.
>
> Zope Version  (Zope 2.8.8-final, python 2.4.5, linux2)
> Python Version  2.4.5 (#2, Jul 31 2008, 19:04:55) [GCC 4.2.3 (Ubuntu
> 4.2.3-2ubuntu7)]
> Plone 2.1.3
>
>
> My plone site use an Extension to update a remote system. With one
> client i have no problem. When there are 4/5 clients connected to
> update simoultanely, the plone freeze.
> ALL the system works very very slowly: all plone site in the same
> istance and the other plone sites in other istances too.
>
>
> There is some timeout to set up,or any other config to set? In etc/
> zope.conf i haven't found anything about it.
>
>
> My  extension is:
>
>
> def makeInsert(self, pagina, stringa, host, porta, accesso,content):
>
>import socket
>
>s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>hostname=host
>port = int(porta)
>
>s.connect((hostname, port))
>
>data=s.send(str(content))
>
>data = s.recv(1024)
>
>data = s.close()
>return repr(data)
>
>
> Thanks in advance
>
> Massimiliano
>
>
>
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Plone-extension freeze plone site

2009-02-09 Thread TrashMan
Hi,

i've a big issue.

Zope Version  (Zope 2.8.8-final, python 2.4.5, linux2)
Python Version  2.4.5 (#2, Jul 31 2008, 19:04:55) [GCC 4.2.3 (Ubuntu  
4.2.3-2ubuntu7)]
Plone 2.1.3


My plone site use an Extension to update a remote system. With one  
client i have no problem. When there are 4/5 clients connected to  
update simoultanely, the plone freeze.
ALL the system works very very slowly: all plone site in the same  
istance and the other plone sites in other istances too.


There is some timeout to set up,or any other config to set? In etc/ 
zope.conf i haven't found anything about it.


My  extension is:


def makeInsert(self, pagina, stringa, host, porta, accesso,content):

import socket

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
hostname=host
port = int(porta)

s.connect((hostname, port))

data=s.send(str(content))

data = s.recv(1024)

data = s.close()
return repr(data)


Thanks in advance

Massimiliano



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )