General
cancel
Showing results for 
Search instead for 
Did you mean: 

Hp-UX 10.20 out of memory 128MB??

SOLVED
Go to solution
Ricky_HK
Frequent Advisor

Hp-UX 10.20 out of memory 128MB??

I have a server running HP-UX 10.20 and a Sophos antivirus software.

Due to the grow of virus definitions, the software uses more and more memory.
Recently, the sophos failed to work after update virus signature with the following error:
"Error initialising detection engine [0x8007000e]". while the same program work on HP-UX 11.11 server.
Sophos support said it is due to out of memory. I used Glance to monitor the system and discovered the software crash when the sophos process used up to 128MB memory. My server got 1GB memory, the total memory usage is less than 30%. I used root to run the program.

I wonder is there any kernel parameter limited the memory allocation??

Any idea?

Thanks!
9 REPLIES
Dennis Handly
Acclaimed Contributor
Solution

Re: Hp-UX 10.20 out of memory 128MB??

>is there any kernel parameter limited the memory allocation?

There is maxdsiz, you should increase it, might as well go to 1 Gb.
Ricky_HK
Frequent Advisor

Re: Hp-UX 10.20 out of memory 128MB??

Dennis,

I checked the current value of maxdsiz, it is 67108864 (64MB).
However, the program didn't crash if it take less than 128MB (>64MB) memory to run. It's fine to take 120MB memory, just crashed when it takes more than 128MB.

Do you think the maxdsiz is releated?

Thanks a lot!
Dennis Handly
Acclaimed Contributor

Re: Hp-UX 10.20 out of memory 128MB??

>It's fine to take 120MB memory, just crashed when it takes more than 128MB.
>Do you think the maxdsiz is related?

Where did you get these 120 and 128 Mb numbers? From top or glance as the program runs? Or the size of some data file?
If maxdsiz is 64 Mb, I don't see why glance shows you a bigger number?

I would suggest you just increase maxdsiz and see. If you don't want 1 Gb, try 256 Mb.

I suppose you could be running of swap. What does "swapinfo -tam" show when that program is running?
Wim Rombauts
Honored Contributor

Re: Hp-UX 10.20 out of memory 128MB??

What memory usage did you look at in Glance ? Process memory usage is more than it's data size. Maybe program code and stack size take 64MB, and when the data size reaches maxdsiz (64MB), your process has a total of 128MB.

So I follow the others : increase maxdsiz to let's say 256MB (to be carefull) and if that doesn't help, maybe it could be that you also need to increase maxssiz or maxtsiz just a little. It won't hurt your server if you increase these parameters, it's just some kind of protection against one single process that suddenly goes wrong somewhere and would eat up all memory if you don't limit it.
Ricky_HK
Frequent Advisor

Re: Hp-UX 10.20 out of memory 128MB??

I used Glance to monitor the memory used by the process.

I attached a few screens, the maxdsiz is 64MB, maxssiz is 8MB.

I will try to increase the maxdsiz to test...
Dennis Handly
Acclaimed Contributor

Re: Hp-UX 10.20 out of memory 128MB??

>I used Glance to monitor the memory used by the process.

It shows sweep using 124 Mb RSS and 128 when it died. RSS probably includes other types of memory that isn't included in maxdsiz. Possibly shared memory or mapped files?

>I attached a few screens, the maxdsiz is 64MB, maxssiz is 8MB.

It would have been easier to just paste the values.
Ricky_HK
Frequent Advisor

Re: Hp-UX 10.20 out of memory 128MB??

Hi, the problem is fixed.

I changed the values of maxdsiz & maxtsiz from 64MB to 128MB.
The sweep can run successfully, use memory up to 140MB.

I don't sure it is fixed by maxdsiz or maxtsiz, may be both of them.

Anyway, thanks you guys!!
Ricky_HK
Frequent Advisor

Re: Hp-UX 10.20 out of memory 128MB??

Problem fixed.
Dennis Handly
Acclaimed Contributor

Re: Hp-UX 10.20 out of memory 128MB??

>I don't sure it is fixed by maxdsiz or maxtsiz

It wouldn't be maxtsiz unless you added more functions to your executable.