Operating System - HP-UX
1825734 Members
2618 Online
109687 Solutions
New Discussion

Re: application BroadVision got the mmap error in hpux 11i.

 
Len Zheng
Occasional Contributor

application BroadVision got the mmap error in hpux 11i.

Hi,

We saw quick a few mmap error inside the application log(Broadvision) these days. So we turned on the tusc. Here are some of the entries, looks the process got the file, but failed to copy.

[12707] stat("/opt/hpdirect/shopping/scripts/includes/add_to_cart_include.jsp", 0x6f430368) .................. [entry]
[12707] stat("/opt/hpdirect/shopping/scripts/includes/add_to_cart_include.jsp", 0x6f430368) .................. = 0
[12707] open("/opt/hpdirect/shopping/scripts/includes/add_to_cart_include.jsp", O_RDONLY, 0) ................. [entry]
[12707] open("/opt/hpdirect/shopping/scripts/includes/add_to_cart_include.jsp", O_RDONLY, 0) ................. = 103
[12707] fstat(103, 0x6f43030c) ............................................................................... [entry]
[12707] fstat(103, 0x6f43030c) ............................................................................... = 0
[12707] mmap(NULL, 22960, PROT_READ, MAP_PRIVATE, 103, NULL) ................................................. [entry]
[12707] mmap(NULL, 22960, PROT_READ, MAP_PRIVATE, 103, NULL) ................................................. ERR#12 EN
OMEM

And my feeling, when the RSS size of the application process grow above 750M(not sure), we saw these errors coming.. Is there anyway we can check or re-configure the size for the process? BTW, it is in HPUX 11i.


2 REPLIES 2
Bill Hassell
Honored Contributor

Re: application BroadVision got the mmap error in hpux 11i.

To control experimental programs, HP-UX has several kernel parameters to limit resource usage such as memory. To increase the maximum amount of memory an application can use, change the kernel parameters maxdsiz and maxdsiz_64. The web application is probably just a 32bit program so maxdsiz is the maximum amount of local data that can be allocated. NOTE: maxdsiz_64 must be larger than maxdsiz. You can increase maxdsiz to 960 megs for a standard program, or recompile or use chatr to create an EXEC_MAGIC executable which allows the data area to extend up to about 1750 megs.


Bill Hassell, sysadmin
Steve Steel
Honored Contributor

Re: application BroadVision got the mmap error in hpux 11i.

Hi


Certainly needs tuning as Bill says

Good explain and some useful but non supported tools for memory at

Memory Usage - â What is using all of the memory?â

by:eric.herberholz@hp.com

Last modified: October 18, 2004

Full document is available at external ftp site: ftp://eh:spear9@hprc.external.hp.com/memory.htm


Steve
If you want truly to understand something, try to change it. (Kurt Lewin)