I am pretty sure that the "max_shm_memory" memory setting bugged my weekend. 

At a certain point in time I increased the amount of memory for this zone, but 
never read about the max_shm_memory setting. 
Since the max_shm_memory was 1GB lower than the  "max_physical_memory" ,  
"max_locked_memory" and  "max_swap" setting (because I didn't know I needed to 
update that also)  I ran in a dozen java memory problems. 
I only found out after creating a complete new zone with this settings:
{
 "brand": "joyent",
 "image_uuid": "842e6fa6-6e9b-11e5-8402-1b490459e334",
 "alias": " webtemp",
 "hostname": " webtemp",
 "max_physical_memory": 6072,
 "quota": 80,
 "resolvers": ["8.8.8.8", "8.8.4.4"],
 "nics": [
  {
    "nic_tag": "external",
    "ip": "192.168.11.161",
    "netmask": "255.255.255.0",
    "gateway": "192.168.11.1"
  }
 ]
}
And when I compared the generated json from vmadm I saw that vmadm always 
creates  the  "max_physical_memory" ,  "max_locked_memory" and  "max_swap" AND 
max_shm_memory with the same values as max_physical_memory. 

This weekend I have had enough " out of permgen space", "java out of memory" 
and other bogus errors for the rest of my life. 
System seems to run correct now. 

For the record:
Host : HP DL360G8 
Processors: 2x 6 core
RAM: 72 GB





-----Oorspronkelijk bericht-----
Van: Joshua M. Clulow [mailto:j...@sysmgr.org] 
Verzonden: zaterdag 30 april 2016 5:53
Aan: smartos-discuss@lists.smartos.org
Onderwerp: Re: [smartos-discuss] setting / changing memory to zone

On 29 April 2016 at 12:57, the outsider <openindi...@out-side.nl> wrote:
> I have a zone that is running a java webserver and this webserver stalls out 
> of nowhere.

What does the stall look like, exactly?  Does the process actually exit, or is 
it just very slow?  Do you see OutOfMemory exceptions in the log for the 
service?

What flags have you passed to the JVM with respect to minimum and maximum heap 
sizes, etc?

> At a certain point in time ai have altered the amount of memory that this 
> zone can use but I think I made a mistake.
> I have increased the amount of RAM, but now I see that there are more 
> settings that maybe need to be altered?
> Do I also need to change :   "max_msg_ids": 4096,  "max_sem_ids": 4096,  
> "max_shm_ids": 4096,  "max_shm_memory": 6072 ??
 
 You only need to change "max_msg_ids", "max_sem_ids", and "max_sem_ids", if 
you're using System V IPC and you run out of IDs.  I believe you can see usage 
of these facilities, if there is any, with the "ipcs" tool.
 
 You can look to see if you're hitting memory capper trouble on the machine by 
running "zonememstat" in the global zone.  You can run it in your zone, as 
well, if you only want to look at stats for that particular zone.
 
 Cheers.
 
 --
 Joshua M. Clulow
 UNIX Admin/Developer
 http://blog.sysmgr.org
 


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to