cancel
Showing results for 
Search instead for 
Did you mean: 

_M_ARENA_OPTS

 
Highlighted
New Member

_M_ARENA_OPTS

Hi,

We are running an application that has process a database entries around 2GB.The system RAM is also 2GB. when the process memory utilisation crosses 2GB the application crashes.
We tried by setting _M_ARENA_OPTS with different values (8:32 ,4:32, 1:32 )But still the problem exists.
The application is running with a single thread at all points of the above problem.

Can anyone please help me out to fine tune the _M_ARENA_OPTS or anyother parameter in HPUX?
2 REPLIES 2
Highlighted
Exalted Contributor

Re: _M_ARENA_OPTS

Shalom,

To describe _M_ARENA_OPTS as a HP-UX parameter is not accurate.

There is no kernel parameter by this name, it is an application parameter.

If you look at kctune -l at the various kernel parameters, you may find you can increase some sizing to deal with this issue.

I would say and perhaps it should be obvious from your question that this is an application coding problem and not a system administration problem.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Highlighted
Acclaimed Contributor

Re: _M_ARENA_OPTS

>The system RAM is also 2GB

This seems too small.

>when the process memory utilisation crosses 2GB the application crashes.

Do you get a signal or do you run out of heap space?

>We tried by setting _M_ARENA_OPTS

Why? This is an optimization option, not a "prevent aborts" option. Also, this option is typically only used for threaded applications.

>any other parameter in HP-UX?

Is this a 64 bit application? Or 32?
How are you even getting to 2 Gb? Are you linking with -N? Or using chatr(1) options?
You would need to make sure maxdsiz(5) or maxdsiz_64bit(5) are large enough.

>SEP: To describe _M_ARENA_OPTS as a HP-UX parameter is not accurate.

Right. It is a malloc(3) configuration env var.