Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 88180 invoked from network); 1 Jan 2008 16:15:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jan 2008 16:15:06 -0000 Received: (qmail 92925 invoked by uid 500); 1 Jan 2008 16:14:55 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 92901 invoked by uid 500); 1 Jan 2008 16:14:55 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 92888 invoked by uid 99); 1 Jan 2008 16:14:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jan 2008 08:14:54 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jan 2008 16:14:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4258E71425B for ; Tue, 1 Jan 2008 08:14:43 -0800 (PST) Message-ID: <1706315.1199204083268.JavaMail.jira@brutus> Date: Tue, 1 Jan 2008 08:14:43 -0800 (PST) From: "Manjula Peiris (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Commented: (AXIS2C-858) Apache runs out of memory and crashes with a simple mtom service test run in a loop In-Reply-To: <21275817.1198856203512.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2C-858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12555208 ] Manjula Peiris commented on AXIS2C-858: --------------------------------------- I did some testing with the mtom sample in Axis2/c and Apache 2.6 . I consumed the mtom service in a loop with 3 shells . First I tested it with 4 MB attachments and noticed a significant memory growth. Following are some observations in my machine. 1. Before the loop memory usage is 29%, and it increased to 70% immediately after starting the loop. And it will grow up to 90% memory usage and request handling became very slow. The other thing is when I stopped the loop the memory usage is remained same and does not decreased. It only decreased when I stopped Apache server. 2. I did the same with simple axis2 server and memory usage remained between 40-43%. And there is no significant memory growth at the start of the loop. 3. I also tested Apache2 with a small attachment (<< 4MB) and the memory usage increased gradually , But not a significant increase at the start of the loop. BTW I didn't notice any crash in the server. But i think there is some memory leak in the axis2 httpd module. Valgrind output does not show any thing but I will try to find where the problem is. > Apache runs out of memory and crashes with a simple mtom service test run in a loop > ----------------------------------------------------------------------------------- > > Key: AXIS2C-858 > URL: https://issues.apache.org/jira/browse/AXIS2C-858 > Project: Axis2-C > Issue Type: Bug > Components: core/engine > Affects Versions: 1.1.0 > Environment: Linux 2.6 kernel > Reporter: Subra A Narayanan > Assignee: Manjula Peiris > > I have a simple mtom service written in Axis2/C which receives requests from clients with attachments. I wrote a client to consume this service and ran a test in a loop with 4 mb attachments. I noticed that the apache server ran out of memory and became very unresponsive after about 45 mins and then core dumped. The server response seemed to improve after some of the threads/processes died due to lack of memory and new threads were created to process the request. > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-dev-help@ws.apache.org