You are here
unaffectedoddball - Thu, 2015/01/29 - 00:23
I can enter the container, then it hesitates for about two seconds and comes back with 'exited from CT [CTID]':
# vzctl enter 110 entered into CT 110 exited from CT 110 #
Rebuilt it a couple times and it keeps kicking me out. I can log in via ssh and from a the noVNC console just fine. I've looked in /var/log on the node and an item of interest is:
kernel: Out of memory in UB 110: OOM killed process 181201 (bash) score 0 vm:4214012kB, rss:2030972kB, swap:0kB
We're working with the debian-7-turnkey-postgresql_13.0-1_amd64 image.
Thanks!
Forum:
Seems strange...
I have no idea and have not encountered that before. TBH I think that this is possibly a(nother) question for the Proxmox forums!?
Bottom line is that it seems that something is running out of RAM (your guest probably by the look of it). Assuming that this is the same template you were having issues with before I'd test the integrity of it (even if it seems unlikely I think that would be a good thing to rule out).
Out of interest; when I get a chance I might retry boosting the specs on my PqSQL CT and see if I can replicate your other findings.
Another thing that I'd consider testing is the RAM on your host. I had a Proxmox server running on desktop hardware for about 3 years that generally ran smoothly but sometimes exhibited odd behaviour - but it only seemed to affect new Linux containers (the older containers seemed fine and all KVM machines were fine whether Windows or Linux). I never could pinpoint the issue but when I upgraded the PVE hardware and re-purposed the old hardware to be a desktop Windows kept BSODing during install. After some testing it ended up that there was a bad stick of RAM. I RMAed it and was told that it was probably bad from the start (but may have got worse over time). Apparently it was a bad batch but they hadn't seen any sticks for RMA from that batch for a long time...
[solved] moar RAM!
Thanks again Jeremy for the quick and helpful response. You are absoultely correct that it was running out of RAM. I suppose I am still perplexed that it would allow me to ssh or log in via noVNC, but can't seem to handle vzctl enter. I'd actually expect that request to be the least resource-intensive!
Noticing how poor the performance had been with too many resources allocated, I went too far the other way and turned it down to 2GB, and received the reported behavior. After searching TKL, I found this, which says 'we usually test appliances with 256MB of memory' so I cranked it down and it still had the same symptoms.
Bumping it up to 4GB allows me to vzctl enter the appliance, and running top I see it's already consuming 3GB!
So problem solved. Mind your RAM!
Huh. So here's what I've
Huh. So here's what I've found:
So my assumption that vzctl enter is a low-resource function is very incorrect!
* Monitoring was performed via a noVNC console
So what else is your template doing...?
Mine has 512MB RAM allocated (hasn't changed) and at idle it is using just over 200MB of that (and no swap). Looking at top (
vztop -E <CTID>
) I can see almost all of that is taken up by 2 PostgreSQL processes (99.4MB & 98.7MB). sshd is using about 50KB (which increases a little when I log in via SSH, but not much) and when I log in via vzctl; that uses only ~26KB; anyway, here it is...The results seem different
The results seem different today. (I used vztop -C -E CTID to keep the CPUs from scrolling off the screen):
While executing vzctl enter [CTID] in another shell:
Do you know how to change the sort column in vztop? Hitting ‘?’ or ‘h’ indicates that ‘o’ and ‘O’ change the sort, but it just dumps me to a list of columns and ends the program.
Add new comment