You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Saad Nader <sn...@gamespy.com> on 2008/09/10 23:53:00 UTC

Memory footprint

Hello All,

 

We're working on some middleware that will run on embedded devices.  We
need to consider memory footprint before using the Axis2 system.  What
is the typical memory footprint that a simple echo app uses for each
module?  We will be using the http sender and receiver.

 

Thanks,

------------------------

Saad Nader

Middleware Engineer

Powered By Gamespy

www.poweredbygamespy.com

 


RE: Memory footprint

Posted by Saad Nader <sn...@gamespy.com>.
No more than 200-300 KB footprint for the client runtime just to do SOAP
operations.  I like the generated soap serialization/deserialization
from WSDLs but I cannot afford to use 2-4MB for this because the system
only has 4 MBs.


Thanks,
------------------------
Saad Nader
Middleware Engineer
Powered By Gamespy
www.poweredbygamespy.com


-----Original Message-----
From: Samisa Abeysinghe [mailto:samisa@wso2.com] 
Sent: Thursday, September 11, 2008 6:33 AM
To: Apache AXIS C User List
Subject: Re: Memory footprint

What are the memory footprint expectations you have?

-- 
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"



Saad Nader wrote:
>
> Hello All,
>
> We're working on some middleware that will run on embedded devices. We

> need to consider memory footprint before using the Axis2 system. What 
> is the typical memory footprint that a simple echo app uses for each 
> module? We will be using the http sender and receiver.
>
> Thanks,
>
> ------------------------
>
> Saad Nader
>
> Middleware Engineer
>
> Powered By Gamespy
>
> www.poweredbygamespy.com
>
>
------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.169 / Virus Database: 270.6.19/1664 - Release Date:
9/10/2008 6:00 AM
>
>   



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


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


Re: Memory footprint

Posted by Samisa Abeysinghe <sa...@wso2.com>.
What are the memory footprint expectations you have?

-- 
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"



Saad Nader wrote:
>
> Hello All,
>
> We’re working on some middleware that will run on embedded devices. We 
> need to consider memory footprint before using the Axis2 system. What 
> is the typical memory footprint that a simple echo app uses for each 
> module? We will be using the http sender and receiver.
>
> Thanks,
>
> ------------------------
>
> Saad Nader
>
> Middleware Engineer
>
> Powered By Gamespy
>
> www.poweredbygamespy.com
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.169 / Virus Database: 270.6.19/1664 - Release Date: 9/10/2008 6:00 AM
>
>   



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


Re: Memory footprint

Posted by Danushka Menikkumbura <da...@wso2.com>.
>
> A echo client invocation uses 3440k of memory in my Windows XP 
> machine. I've tested this with the math sample as well. It also 
> consumes equal amount of memory. Also the memory foot print for the 
> simple axis2 server is in the same range.
>
Supun,

When I run echo without debugging symbols, I can see a slight 
improvement in the memory footprint. It comes down to 3280k from 3924k 
on my WinXP. Similarly Simple Axis2 server memory footprint comes down 
to 3388k from 4140k.

Danushka

-- 
Danushka Menikkumbura
Technical Lead, WSO2 Inc.

blog : http://danushka-menikkumbura.blogspot.com/

http://wso2.com/ - "The Open Source SOA Company"



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


Re: Memory footprint

Posted by Rajika Kumarasiri <ra...@gmail.com>.
On Thu, Sep 11, 2008 at 1:40 PM, Milinda Pathirage <
milinda.pathirage@gmail.com> wrote:
You can use top as well attach to a particular process- here
simple_http_server process, try with top -P with process ID.

-Rajika

> I think I have made a mistake in previous mail by looking at GNOME System
> Monitor to get the memory used by simple axis server. I found this mail with
> the subject 'HowTo: Profile Memory in a Linux System'[1] while searching the
> net. Using the ps command mentioned in that, I have found following values
> in Ubuntu Linux 8.04.
>
> Simple Axis Server:
> RSS : 1780KB
> VSIZE: 3420KB
>
> Echo Client(I used a sleep call after doing the actual request using
> axis2_svc_client and measure the memory taken by the echo process):
> RSS: 1808 KB
> VSIZE: 3104KB
>
> Definitions:
> ---------------
> RSS (Resident Set Size) - The portion of a process that exists in physical
> memory (RAM). The rest of the program exists in swap. If the computer has
> not used swap, this number will be equal to VSIZE.
> VSIZE (Virtual memory SIZE) - The amount of memory the process is currently
> using. This includes the amount in RAM and the amount in swap.
>
> Links:
> --------
> [1] http://mail.nl.linux.org/linux-mm/2003-03/msg00077.html
>
> Thanks,
> Milinda
>
>
>
> On Thu, Sep 11, 2008 at 10:51 have founAM, Supun Kamburugamuva <
> supun06@gmail.com> wrote:
>
>> A echo client invocation uses 3440k of memory in my Windows XP machine.
>> I've tested this with the math sample as well. It also consumes equal amount
>> of memory. Also the memory foot print for the simple axis2 server is in the
>> same range.
>>
>> Regards,
>> Supun
>>
>>
>> On Thu, Sep 11, 2008 at 9:18 AM, Milinda Pathirage <
>> milinda.pathirage@gmail.com> wrote:
>>
>>> Hi,
>>> I did some simple tests to find out memory footprint. Here are the
>>> results:
>>>
>>> Simple Axis2/C Server(Sleeping): 400KB
>>> When I run echo sample simple axis server takes 472KB memory even after
>>> echo requests are handled.
>>>
>>> There may be memory leaks in simple axis server because most of the time
>>> we use it only for testing purposes. If you want to use simple axis2 server,
>>> I think we'll be able to fix those leaks.
>>>
>>> Thanks
>>> Milinda
>>>
>>>
>>> On Thu, Sep 11, 2008 at 7:32 AM, Rajika Kumarasiri <ra...@gmail.com>wrote:
>>>
>>>>
>>>>
>>>> On Thu, Sep 11, 2008 at 3:23 AM, Saad Nader <sn...@gamespy.com> wrote:
>>>> Interesting question!, I am not aware of the fact how much memory is
>>>> used by Axis2/C. But you should be able to measure it using few simple
>>>> tools, under Linux or Windows. In linux you can start the server and try
>>>> 'top' to observer the memory usage of the server by sending few requests to
>>>> it.
>>>>
>>>> -Rajika
>>>>
>>>>  Hello All,
>>>>>
>>>>>
>>>>>
>>>>> We're working on some middleware that will run on embedded devices.  We
>>>>> need to consider memory footprint before using the Axis2 system.  What is
>>>>> the typical memory footprint that a simple echo app uses for each module?
>>>>> We will be using the http sender and receiver.
>>>>>
>>>>>
>>>>>
>>>>> Thanks,
>>>>>
>>>>> ------------------------
>>>>>
>>>>> Saad Nader
>>>>>
>>>>> Middleware Engineer
>>>>>
>>>>> Powered By Gamespy
>>>>>
>>>>> www.poweredbygamespy.com
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> http://wso2.org/
>>>> http://llvm.org/
>>>> http://www.osdev.org/
>>>>
>>>
>>>
>>>
>>> --
>>> http://mpathirage.com
>>> http://wso2.org "Oxygen for Web Service Developers"
>>> http://wsaxc.blogspot.com "Web Services With Axis2/C"
>>>
>>
>>
>>
>> --
>> Software Engineer, WSO2 Inc
>>
>
>
>
> --
> http://mpathirage.com
> http://wso2.org "Oxygen for Web Service Developers"
> http://wsaxc.blogspot.com "Web Services With Axis2/C"
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/

Re: Memory footprint

Posted by Milinda Pathirage <mi...@gmail.com>.
I think I have made a mistake in previous mail by looking at GNOME System
Monitor to get the memory used by simple axis server. I found this mail with
the subject 'HowTo: Profile Memory in a Linux System'[1] while searching the
net. Using the ps command mentioned in that, I have found following values
in Ubuntu Linux 8.04.

Simple Axis Server:
RSS : 1780KB
VSIZE: 3420KB

Echo Client(I used a sleep call after doing the actual request using
axis2_svc_client and measure the memory taken by the echo process):
RSS: 1808 KB
VSIZE: 3104KB

Definitions:
---------------
RSS (Resident Set Size) - The portion of a process that exists in physical
memory (RAM). The rest of the program exists in swap. If the computer has
not used swap, this number will be equal to VSIZE.
VSIZE (Virtual memory SIZE) - The amount of memory the process is currently
using. This includes the amount in RAM and the amount in swap.

Links:
--------
[1] http://mail.nl.linux.org/linux-mm/2003-03/msg00077.html

Thanks,
Milinda


On Thu, Sep 11, 2008 at 10:51 have founAM, Supun Kamburugamuva <
supun06@gmail.com> wrote:

> A echo client invocation uses 3440k of memory in my Windows XP machine.
> I've tested this with the math sample as well. It also consumes equal amount
> of memory. Also the memory foot print for the simple axis2 server is in the
> same range.
>
> Regards,
> Supun
>
>
> On Thu, Sep 11, 2008 at 9:18 AM, Milinda Pathirage <
> milinda.pathirage@gmail.com> wrote:
>
>> Hi,
>> I did some simple tests to find out memory footprint. Here are the
>> results:
>>
>> Simple Axis2/C Server(Sleeping): 400KB
>> When I run echo sample simple axis server takes 472KB memory even after
>> echo requests are handled.
>>
>> There may be memory leaks in simple axis server because most of the time
>> we use it only for testing purposes. If you want to use simple axis2 server,
>> I think we'll be able to fix those leaks.
>>
>> Thanks
>> Milinda
>>
>>
>> On Thu, Sep 11, 2008 at 7:32 AM, Rajika Kumarasiri <ra...@gmail.com>wrote:
>>
>>>
>>>
>>> On Thu, Sep 11, 2008 at 3:23 AM, Saad Nader <sn...@gamespy.com> wrote:
>>> Interesting question!, I am not aware of the fact how much memory is used
>>> by Axis2/C. But you should be able to measure it using few simple tools,
>>> under Linux or Windows. In linux you can start the server and try 'top' to
>>> observer the memory usage of the server by sending few requests to it.
>>>
>>> -Rajika
>>>
>>>  Hello All,
>>>>
>>>>
>>>>
>>>> We're working on some middleware that will run on embedded devices.  We
>>>> need to consider memory footprint before using the Axis2 system.  What is
>>>> the typical memory footprint that a simple echo app uses for each module?
>>>> We will be using the http sender and receiver.
>>>>
>>>>
>>>>
>>>> Thanks,
>>>>
>>>> ------------------------
>>>>
>>>> Saad Nader
>>>>
>>>> Middleware Engineer
>>>>
>>>> Powered By Gamespy
>>>>
>>>> www.poweredbygamespy.com
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> http://wso2.org/
>>> http://llvm.org/
>>> http://www.osdev.org/
>>>
>>
>>
>>
>> --
>> http://mpathirage.com
>> http://wso2.org "Oxygen for Web Service Developers"
>> http://wsaxc.blogspot.com "Web Services With Axis2/C"
>>
>
>
>
> --
> Software Engineer, WSO2 Inc
>



-- 
http://mpathirage.com
http://wso2.org "Oxygen for Web Service Developers"
http://wsaxc.blogspot.com "Web Services With Axis2/C"

Re: Memory footprint

Posted by Supun Kamburugamuva <su...@gmail.com>.
A echo client invocation uses 3440k of memory in my Windows XP machine. I've
tested this with the math sample as well. It also consumes equal amount of
memory. Also the memory foot print for the simple axis2 server is in the
same range.

Regards,
Supun

On Thu, Sep 11, 2008 at 9:18 AM, Milinda Pathirage <
milinda.pathirage@gmail.com> wrote:

> Hi,
> I did some simple tests to find out memory footprint. Here are the results:
>
> Simple Axis2/C Server(Sleeping): 400KB
> When I run echo sample simple axis server takes 472KB memory even after
> echo requests are handled.
>
> There may be memory leaks in simple axis server because most of the time we
> use it only for testing purposes. If you want to use simple axis2 server, I
> think we'll be able to fix those leaks.
>
> Thanks
> Milinda
>
>
> On Thu, Sep 11, 2008 at 7:32 AM, Rajika Kumarasiri <ra...@gmail.com>wrote:
>
>>
>>
>> On Thu, Sep 11, 2008 at 3:23 AM, Saad Nader <sn...@gamespy.com> wrote:
>> Interesting question!, I am not aware of the fact how much memory is used
>> by Axis2/C. But you should be able to measure it using few simple tools,
>> under Linux or Windows. In linux you can start the server and try 'top' to
>> observer the memory usage of the server by sending few requests to it.
>>
>> -Rajika
>>
>>  Hello All,
>>>
>>>
>>>
>>> We're working on some middleware that will run on embedded devices.  We
>>> need to consider memory footprint before using the Axis2 system.  What is
>>> the typical memory footprint that a simple echo app uses for each module?
>>> We will be using the http sender and receiver.
>>>
>>>
>>>
>>> Thanks,
>>>
>>> ------------------------
>>>
>>> Saad Nader
>>>
>>> Middleware Engineer
>>>
>>> Powered By Gamespy
>>>
>>> www.poweredbygamespy.com
>>>
>>>
>>>
>>
>>
>>
>> --
>> http://wso2.org/
>> http://llvm.org/
>> http://www.osdev.org/
>>
>
>
>
> --
> http://mpathirage.com
> http://wso2.org "Oxygen for Web Service Developers"
> http://wsaxc.blogspot.com "Web Services With Axis2/C"
>



-- 
Software Engineer, WSO2 Inc

Re: Memory footprint

Posted by Milinda Pathirage <mi...@gmail.com>.
Hi,
I did some simple tests to find out memory footprint. Here are the results:

Simple Axis2/C Server(Sleeping): 400KB
When I run echo sample simple axis server takes 472KB memory even after echo
requests are handled.

There may be memory leaks in simple axis server because most of the time we
use it only for testing purposes. If you want to use simple axis2 server, I
think we'll be able to fix those leaks.

Thanks
Milinda

On Thu, Sep 11, 2008 at 7:32 AM, Rajika Kumarasiri <ra...@gmail.com>wrote:

>
>
> On Thu, Sep 11, 2008 at 3:23 AM, Saad Nader <sn...@gamespy.com> wrote:
> Interesting question!, I am not aware of the fact how much memory is used
> by Axis2/C. But you should be able to measure it using few simple tools,
> under Linux or Windows. In linux you can start the server and try 'top' to
> observer the memory usage of the server by sending few requests to it.
>
> -Rajika
>
>  Hello All,
>>
>>
>>
>> We're working on some middleware that will run on embedded devices.  We
>> need to consider memory footprint before using the Axis2 system.  What is
>> the typical memory footprint that a simple echo app uses for each module?
>> We will be using the http sender and receiver.
>>
>>
>>
>> Thanks,
>>
>> ------------------------
>>
>> Saad Nader
>>
>> Middleware Engineer
>>
>> Powered By Gamespy
>>
>> www.poweredbygamespy.com
>>
>>
>>
>
>
>
> --
> http://wso2.org/
> http://llvm.org/
> http://www.osdev.org/
>



-- 
http://mpathirage.com
http://wso2.org "Oxygen for Web Service Developers"
http://wsaxc.blogspot.com "Web Services With Axis2/C"

Re: Memory footprint

Posted by Rajika Kumarasiri <ra...@gmail.com>.
On Thu, Sep 11, 2008 at 3:23 AM, Saad Nader <sn...@gamespy.com> wrote:
Interesting question!, I am not aware of the fact how much memory is used by
Axis2/C. But you should be able to measure it using few simple tools, under
Linux or Windows. In linux you can start the server and try 'top' to
observer the memory usage of the server by sending few requests to it.

-Rajika

>  Hello All,
>
>
>
> We're working on some middleware that will run on embedded devices.  We
> need to consider memory footprint before using the Axis2 system.  What is
> the typical memory footprint that a simple echo app uses for each module?
> We will be using the http sender and receiver.
>
>
>
> Thanks,
>
> ------------------------
>
> Saad Nader
>
> Middleware Engineer
>
> Powered By Gamespy
>
> www.poweredbygamespy.com
>
>
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/