Operating System - HP-UX
1748140 Members
3479 Online
108758 Solutions
New Discussion юеВ

Re: Error in memory allocation

 
SOLVED
Go to solution
RiclyLeRoy
Frequent Advisor

Error in memory allocation

I'm using HP-UX B.11.00 where it runs specific service connects to a Oracle DB (on same machine) successfully and later I can see this message in service log :

"Error in memory allocation in "_get_from _LBACCCAS_pagate"

I increased swap area but this was not problem.
What can you suggest me to debug this error ?


9 REPLIES 9
Dennis Handly
Acclaimed Contributor

Re: Error in memory allocation

What is the value of maxdsiz?
What does "swapinfo -tam" show?
RiclyLeRoy
Frequent Advisor

Re: Error in memory allocation

How can I print my 'maxdsiz' value ?

swapinfo -tam says:

Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 548 3548 13% 0 - 1 /dev/vg00/lvol2
dev 8192 0 8192 0% 0 - 6 /dev/vg00_oasis2/lvol1
dev 6877 7 4089 0% 2345984 - 1 /dev/vg00_oasis2/lvol2
reserve - 5645 -5645
memory 4931 598 4333 12%
total 24096 6798 14517 28% - 0 -
Dennis Handly
Acclaimed Contributor

Re: Error in memory allocation

How can I print my 'maxdsiz' value?

Assuming this is a 32 bit process:
kmtune -q maxdsiz
Also "ulimit -a" may help.
RiclyLeRoy
Frequent Advisor

Re: Error in memory allocation

maxdsiz is '0XBFFFFFFF' and HP-UX is 64 bit (KERNEL_BITS is 64)

suggestions ?
Dennis Handly
Acclaimed Contributor

Re: Error in memory allocation

>maxdsiz is 0XBFFFFFFF and HP-UX is 64 bit

That's 3221225471, 3 Gb. The kernel isn't so important but what is the bitness of the process that gets that error?

A 32 bit process by default can only get 1 Gb.

Can you watch that process with top and see what the SIZE fields shows about the time of that error message?

All of this assumes that the error message indicates it is out of heap space.
RiclyLeRoy
Frequent Advisor

Re: Error in memory allocation

>The kernel isn't so important but what is the >bitness of the process that gets that error?
You want to say if this process is been created according to 32 or 64 bit architecture ?

>Can you watch that process with top and see >what the SIZE fields shows about the time of >that error message?
I'll try to capture it


>All of this assumes that the error message >indicates it is out of heap space.

I spoke with who created this service and She confirms problem is dynamic memory which icreases and process doesn't free it.

1- How can I check this HEAP value by top command ?
2- Can i increase heap space value for process ?
Dennis Handly
Acclaimed Contributor
Solution

Re: Error in memory allocation

>You want to say if this process is been created according to 32 or 64 bit architecture?

Yes. Using file(1) on the executable will tell you.

>She confirms problem is dynamic memory which increases and process doesn't free it.

Do you have a memory leak?

>1- How can I check this HEAP value by top command?

As I mentioned, look at SIZE for a rough value.

>2- Can I increase heap space value for process?

If you are hitting the 1 Gb limit, you will have to relink or use chatr(1) to increase it.
RiclyLeRoy
Frequent Advisor

Re: Error in memory allocation

> Do you have a memory leak?

Yes, I have a memory leak


> look at SIZE for a rough value.
Ok, but I'm not able to see details of allocated space (text, data, and stack) but only total memory.

Dennis Handly
Acclaimed Contributor

Re: Error in memory allocation

>I have a memory leak

Can you use wdb's leak detection tools on 11.11 to fix your application?

>> look at SIZE for a rough value.

>I'm not able to see details of allocated space (text, data, and stack) but only total memory.

You don't care about text and the stack, only data. Did you watch the value of SIZE increase?
What's your value of maxssiz?