Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 45777 invoked from network); 30 Oct 2007 12:24:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2007 12:24:01 -0000 Received: (qmail 97877 invoked by uid 500); 30 Oct 2007 12:23:46 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 97862 invoked by uid 500); 30 Oct 2007 12:23:46 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 97837 invoked by uid 99); 30 Oct 2007 12:23:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2007 05:23:46 -0700 X-ASF-Spam-Status: No, hits=3.5 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aswathsn@gmail.com designates 209.85.128.189 as permitted sender) Received: from [209.85.128.189] (HELO fk-out-0910.google.com) (209.85.128.189) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2007 12:23:50 +0000 Received: by fk-out-0910.google.com with SMTP id f40so1920356fka for ; Tue, 30 Oct 2007 05:23:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=k59ZWQss0jOJ2qyR7wIDdYYnUCn6HrYPLDjB0ehotyY=; b=TjC+mOUWplEfR969qioI8/0jtg0oIGr7sl3Ree6oy4Gdl5F7x71V3iDfoqjTB8HrDvqXhdRVT2KUR4vn+6bKm6ZXhL+0mZfq38McuhC3PieWn1OwUkNnomBiILlFSB83ss5f9cBWA0hOs2p/RkfqFeOdhLtV88iTfvv4urETFXs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=OfC8evz/quFJYfAjQUc/CkGL6t2diVbk+GZwgNUz5pmQqeolv5uWFyK4iwxU3isMX0H3twx/X0DZqMEV2vQwPSGMbkM7XcG5gYML+2yX+WlHLWT9HIhTfAj/NvzCkkF5bicSNo1rTcB+T4NOoImwQnic2bkUB7/mY8BQN438gAE= Received: by 10.82.146.14 with SMTP id t14mr13086635bud.1193747007446; Tue, 30 Oct 2007 05:23:27 -0700 (PDT) Received: by 10.82.185.8 with HTTP; Tue, 30 Oct 2007 05:23:27 -0700 (PDT) Message-ID: <489947c0710300523m53514d0ck45b175855d8a6ae@mail.gmail.com> Date: Tue, 30 Oct 2007 08:23:27 -0400 From: "Subra A Narayanan" To: "Apache AXIS C User List" Subject: Re: Memory Issues in Sample Server Code In-Reply-To: <878x5l0wvo.fsf@etch.wso2.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1785_3746085.1193747007409" References: <470D96B7.50300@wso2.com> <470E9441.2080802@wso2.com> <470EDFE7.8070003@wso2.com> <489947c0710290723s7454f1c0y106a39cee0d2e128@mail.gmail.com> <878x5l0wvo.fsf@etch.wso2.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_1785_3746085.1193747007409 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Dinesh/Samisa, I am using Apache 2.0.59 with axis 1.1. Do you think upgrading to apache 2.2might solve some of these issues? Are you guys aware of any memory management issues with apache 2.0? Samisa, a quick question for you. In you email, you mentioned that calling free is not going to free up memory from the apache pool. Does that mean that I dont have to call AXIS2_FREE for any memory that I explicitly allocated using AXIS2_MALLOC? Then why do we need the free function? Please clarify. Thank you, Subra On 10/30/07, Dinesh Premalal wrote: > > Hi David, > > David Klassen writes: > > > I am running my tests with v1.1 but on Windows with apache 2.2.x (latest > > September release). I tried various things. I did see one diff where the > free > > statement was either lost during the correction of an indentation or > purposely > > removed, however the free statement replacement did not solve the issue. > Seeing > > how other JIRA issues seemed to be closed concerning similar reports, I > kind of > > assumed that people were not focusing on server performance in this > project, > > but embedded C client access. > I just compiled Axis2/C 1.1 and run server with Apache2.2.6 > version.Tried to send 100,000 requests. I monitored memory > consumptions of the httpd. For me it never reach 400MB resident or > virtual memory. I also able to see the memory resetting thing, when it > comes to something around 250MB memory get reset.I attached my process > list and client response. > > > thanks, > Dinesh > > > echo.xml > ---------- > xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> xmlns:wsa="http://www.w3.org/2005/08/addressing"> > http://localhost:9089/axis2/services/echo > http://ws.apache.org/axis2/c/samples/echoString > 0c69d0c6-86b6-1dc1-275c-001125b4e529 xmlns:ns1="http://ws.apache.org/axis2/services/echo">Hello > World! > > > client command > -------------- > ab -T "application/soap+xml; charset=UTF-8" -p echo.xml -n 100000 -c 4 > http://localhost:9090/axis2/services/echo > > > > client response > --------------- > Completed 90000 requests > Finished 100000 requests > > > Server Software: Apache/2.2.6 > Server Hostname: localhost > Server Port: 9090 > > Document Path: /axis2/services/echo > Document Length: 672 bytes > > Concurrency Level: 4 > Time taken for tests: 276.629621 seconds > Complete requests: 100000 > Failed requests: 0 > Write errors: 0 > Total transferred: 83302499 bytes > Total POSTed: 69302079 > HTML transferred: 67202016 bytes > Requests per second: 361.49 [/sec] (mean) > Time per request: 11.065 [s] (mean) > Time per request: 2.766 [s] (mean, across all concurrent requests) > Transfer rate: 294.08 [bytes/sec] received > 244.65 kb/s sent > 538.73 kb/s total > > Connection Times (ms) > min mean[/-sd] median max > Connect: 0 0 1.3 0 243 > Processing: 0 10 110.7 1 5995 > Waiting: 0 8 101.0 1 4267 > Total: 0 10 110.7 2 5995 > > Percentage of the requests served within a certain time (ms) > 50% 2 > 66% 2 > 75% 2 > 80% 2 > 90% 3 > 95% 3 > 98% 8 > 99% 218 > 100% 5995 (longest request) > > > > > process list > --------------- > > USER PR NI VIRT RES SHR S %CPU %MEM TIME+ UID PID COMMAND > daemon 16 0 299m 69m 1772 D 0.0 6.9 0:06.14 1 29959 ./httpd > -k start > daemon 16 0 237m 61m 1772 D 0.0 6.0 0:04.89 1 29957 ./httpd > -k start > daemon 15 0 119m 47m 2260 S 0.0 4.7 0:02.39 1 30151 ./httpd > -k start > daemon 15 0 91468 46m 2260 S 0.0 4.6 0:01.67 1 30215 ./httpd > -k start > daemon 16 0 296m 46m 1772 S 0.0 4.6 0:06.18 1 29958 ./httpd > -k start > daemon 15 0 89352 46m 2260 S 0.0 4.6 0:01.80 1 30205 ./httpd > -k start > daemon 15 0 301m 45m 1612 S 0.0 4.5 0:06.17 1 29956 ./httpd > -k start > daemon 15 0 133m 45m 2260 S 0.0 4.5 0:02.74 1 30110 ./httpd > -k start > daemon 15 0 74116 44m 2260 S 0.0 4.4 0:01.46 1 30244 ./httpd > -k start > daemon 15 0 128m 44m 2260 S 0.0 4.4 0:02.56 1 30120 ./httpd > -k start > daemon 16 0 247m 40m 1764 D 0.0 4.0 0:05.45 1 30012 ./httpd > -k start > daemon 15 0 45464 34m 2260 S 0.0 3.4 0:00.82 1 30364 ./httpd > -k start > daemon 16 0 180m 32m 1764 D 0.0 3.2 0:03.99 1 30013 ./httpd > -k start > daemon 16 0 160m 30m 1764 D 0.0 3.0 0:03.61 1 30014 ./httpd > -k start > daemon 16 0 184m 28m 1652 D 0.0 2.9 0:04.04 1 30019 ./httpd > -k start > dinesh 15 0 31024 15m 4972 S 0.0 1.5 0:19.63 1000 4763 emacs -f > gnus > root 15 0 99.8m 6600 2044 S 0.0 0.6 0:18.99 0 4333 > /usr/bin/X11/X -dpi 100 -nolisten tcp > d > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-c-user-help@ws.apache.org > > ------=_Part_1785_3746085.1193747007409 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Dinesh/Samisa,

I am using Apache 2.0.59 with axis 1.1. Do you think upgrading to apache 2.2 might solve some of these issues? Are you guys aware of any memory management issues with apache 2.0?

Samisa, a quick question for you. In you email, you mentioned that calling free is not going to free up memory from the apache pool. Does that mean that I dont have to call AXIS2_FREE for any memory that I explicitly allocated using AXIS2_MALLOC? Then why do we need the free function? Please clarify.

Thank you,
Subra



On 10/30/07, Dinesh Premalal <xydinesh@gmail.com> wrote:
Hi David,

David Klassen <dbavedb@shaw.ca> writes:

> I am running my tests with v1.1 but on Windows with apache 2.2.x (latest
> September release). I tried various things. I did see one diff where the free
> statement was either lost during the correction of an indentation or purposely
> removed, however the free statement replacement did not solve the issue. Seeing
> how other JIRA issues seemed to be closed concerning similar reports, I kind of
> assumed that people were not focusing on server performance in this project,
> but embedded C client access.
I just compiled Axis2/C 1.1 and run server with Apache2.2.6
version.Tried to send 100,000 requests. I monitored memory
consumptions of the httpd. For me it never reach 400MB resident or
virtual memory. I also able to see the memory resetting thing, when it
comes to something around 250MB memory get reset.I attached my process
list and client response.


thanks,
Dinesh


echo.xml
----------
<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope "><soapenv:Header
xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsa:To>http://localhost:9089/axis2/services/echo </wsa:To><wsa:Action>http://ws.apache.org/axis2/c/samples/echoString</wsa:Action><wsa:MessageID>0c69d0c6-86b6-1dc1-275c-001125b4e529</wsa:MessageID></soapenv:Header><soapenv:Body><ns1:echoString
xmlns:ns1="http://ws.apache.org/axis2/services/echo"><text>Hello
World!</text></ns1:echoString></soapenv:Body></soapenv:Envelope>


client command
--------------
ab -T "application/soap+xml; charset=UTF-8" -p echo.xml -n 100000 -c 4 http://localhost:9090/axis2/services/echo



client response
---------------
Completed 90000 requests
Finished 100000 requests


Server Software:        Apache/2.2.6
Server Hostname:        localhost
Server Port:            9090

Document Path:          /axis2/services/echo
Document Length:        672 bytes

Concurrency Level:      4
Time taken for tests:   276.629621 seconds
Complete requests:      100000
Failed requests:        0
Write errors:           0
Total transferred:      83302499 bytes
Total POSTed:           69302079
HTML transferred:       67202016 bytes
Requests per second:    361.49 [/sec] (mean)
Time per request:       11.065 [s] (mean)
Time per request:       2.766 [s] (mean, across all concurrent requests)
Transfer rate:          294.08 [bytes/sec] received
                        244.65 kb/s sent
                        538.73 kb/s total

Connection Times (ms)
              min  mean[/-sd] median   max
Connect:        0    0   1.3      0     243
Processing:     0   10 110.7      1    5995
Waiting:        0    8 101.0      1    4267
Total:          0   10 110.7      2    5995

Percentage of the requests served within a certain time (ms)
  50%      2
  66%      2
  75%      2
  80%      2
  90%      3
  95%      3
  98%      8
  99%    218
100%   5995 (longest request)




process list
---------------

USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+   UID   PID COMMAND
daemon    16   0  299m  69m 1772 D   0.0  6.9   0:06.14    1 29959 ./httpd -k start
daemon    16   0  237m  61m 1772 D  0.0  6.0   0:04.89    1 29957 ./httpd -k start
daemon    15   0  119m  47m 2260 S  0.0  4.7   0:02.39    1 30151 ./httpd -k start
daemon    15   0 91468  46m 2260 S  0.0  4.6   0:01.67    1 30215 ./httpd -k start
daemon    16   0  296m  46m 1772 S  0.0  4.6   0:06.18    1 29958 ./httpd -k start
daemon    15   0 89352  46m 2260 S  0.0  4.6   0: 01.80    1 30205 ./httpd -k start
daemon    15   0  301m  45m 1612 S  0.0  4.5   0:06.17    1 29956 ./httpd -k start
daemon    15   0  133m  45m 2260 S  0.0  4.5   0:02.74    1 30110 ./httpd -k start
daemon    15   0 74116  44m 2260 S   0.0  4.4   0:01.46    1 30244 ./httpd -k start
daemon    15   0  128m  44m 2260 S  0.0  4.4   0:02.56    1 30120 ./httpd -k start
daemon    16   0  247m  40m 1764 D  0.0  4.0   0:05.45    1 30012 ./httpd -k start
daemon    15   0 45464  34m 2260 S  0.0  3.4   0:00.82    1 30364 ./httpd -k start
daemon    16   0  180m  32m 1764 D  0.0  3.2   0:03.99    1 30013 ./httpd -k start
daemon    16   0  160m  30m 1764 D  0.0  3.0   0: 03.61    1 30014 ./httpd -k start
daemon    16   0  184m  28m 1652 D  0.0  2.9   0:04.04    1 30019 ./httpd -k start
dinesh    15   0 31024  15m 4972 S  0.0  1.5   0:19.63 1000  4763 emacs -f gnus
root      15   0 99.8m 6600 2044 S  0.0  0.6   0:18.99    0  4333 /usr/bin/X11/X -dpi 100 -nolisten tcp
d




---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


------=_Part_1785_3746085.1193747007409--