Container hang/freeze on SSH

Jun 24, 2019
8
1
23
35
Hello,

i run proxmox 5.4.-15 on my server. and i have container with debian 9. i install webserver on it.
when i run some script php which take a long time process, ssh access on putty immediately freeze/hang, and then result of script php is error 503 (server unavailable). and ssh back to normal again when process done.

i check usage of memory and cpu is normal, low usage. i check df -i and df -h also normal

any idea what should i do?

thanks
 
hello

after i test create a new VM, and copy all script php content from container to new VM, i found the problem. in my server using freetds (ms sql driver php) to connect to Ms SQL database. and after i monitor usage in htop, i can see that apache using huge memory.
in container i could not see progress of increase usage memory in htop, so i can not analyze what happened to container.

may be next time i set bigger memory size in container to avoid error/freeze when usage memory reach max


this is htop in VM :
htop.jpeg
 
  • Like
Reactions: matrix
Hello,

ssh freeze on lxc (ubuntu 20.04), changing sshd_config (UseDNS=NO, clientInterval) has no effect, freeze time between 5 or 10 seconds.

pve 6.-4-8

lxc conf:
arch: amd64
cores: 1
hostname: xxxx
memory: 95368
mp0: /mnt/pve/xxxxx,mp=/xxxxx
mp1: /mnt/pve/xxxxx,mp=/xxxxx
nameserver: 8.8.8.8 8.8.4.4
net0: name=eth0,bridge=vmbr1,gw=192.168.xx.xx,hwaddr=55:0G:T7:34:2G:E4,ip=192.168.xx.xx/24,tag=20,type=veth,mtu=1462
onboot: 1
ostype: ubuntu
rootfs: xxx_xx:subvol-102-disk-0,size=220G
swap: 95368
unprivileged: 1

Any idea,

Thanks
 
I found nothing from PVE ssh logs, no error or warning.
How can i check the network connection upstream.
 
Last edited:
have also checked the auth.log log? you will find it in /var/log/.

was this container privileged?

How can i check the network connection upstream.

Did you get the same issue with other containers or only this container? if so, you can try to set the TimeoutStartSec to 1 sec instead of 5 min by editing the /etc/systemd/system/network-online.target.wants/networking.service then reboot the lxc.
 
Hello,

Yes, ssh freeze is on pve host and lxc guests.
So, do I have to make the change anyway for TimeoutStartSec.