WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-users] Re: [Xen-API] Frequent I/O error of HTTP server and memory e

To: Dave Scott <Dave.Scott@xxxxxxxxxxxxx>
Subject: [Xen-users] Re: [Xen-API] Frequent I/O error of HTTP server and memory error on XenServer5.6 FP1
From: Frank <frank@xxxxxxxxx>
Date: Thu, 13 Jan 2011 14:54:21 -0800
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>, "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 13 Jan 2011 14:56:54 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <81A73678E76EA642801C8F2E4823AD2193347428AD@xxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4D2F7922.7050906@xxxxxxxxx> <81A73678E76EA642801C8F2E4823AD2193347428AD@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7
Thank you. Are there many changes from 5.6 to 5.6FP1? with same software, xenserver5.6 works fine. anyway, I will try your method to see how many threads run when the problem happens

On 01/13/2011 02:41 PM, Dave Scott wrote:
Hi,

My best guess is that the "Thread.create: Cannot allocate memory" means that 
there's insufficient virtual address space in the process to allocate a 10MiB thread 
stack. I suspect this is being caused by there being too many threads (approx 300 is the 
max)

Since xapi currently uses a thread per connection model there are probably too 
many open connections -- could you describe the software which is using the 
apache xmlrpc client? Is it possible that someone is opening connections but 
not closing them quickly enough?

If you install gdb and attach it to the running (child -- the big one) xapi 
process it'll tell you how many threads are present and allow you to examine 
the stacks of each one ('thread apply all bt') -- it should be easy to spot 
where the threads are blocked (e.g. in a network recv or perhaps on a 
pthread_mutex)

At some point in future we'll have to switch to a different threading model and 
make the connection handling more robust. In the meantime we have to be a bit 
careful about connection cleanup :/

Thanks,
Dave

-----Original Message-----
From: xen-api-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-api-
bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Frank
Sent: 13 January 2011 22:14
To: xen-api@xxxxxxxxxxxxxxxxxxx; xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] Frequent I/O error of HTTP server and memory error
on XenServer5.6 FP1

Hi,
      I am using XenServer5.6 FP1 GA release with openvswitch as network
backend. When I create VM through xapi,  "apache.xmlrpc.XmlRpcException:
I/O error" happens very frequently. At meanwhile my xencenter lost
connection to hosts.
      Another thing is when I tried to kill VMs from xencenter, it
complains "Internal error:Sys_error("Thread.create: Cannot allocate
memory")", see attached picture.
      does anyone meet similar errors?
      Thank you.


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>