Operating System - HP-UX
1834434 Members
2145 Online
110067 Solutions
New Discussion

Re: How to get memory size exhausted by shared libraries?

 
xbin999
Occasional Contributor

How to get memory size exhausted by shared libraries?

There were so many libraries in our applications. The programs all were compiled to 32-bits. The program ran into error recently. The error looked like:
/usr/lib/dld.sl: Call to mmap() failed -TEXT /apps/mmcprodora/8.0.6/lib/librw60.sl
/usr/lib/dld.sl: Not enough space

The method to resolve the problem:
1. strip .sl
2. compiled to 64-bit
Any other suggestions?

And are there any tools which can get shared memory size which be exhausted by shared libraries?
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: How to get memory size exhausted by shared libraries?

None of your solutions hit the root cause.

The root cause is that you have fragmented your shared memory space. Look at the output of "ipcs -ma" and see if you can find large shared memory segments that are left around because you killed a database application.

>2. compiled to 64-bit

Yes, this will also fix the issue.