Re: Out-of-memory question [message #9465 is a reply to message #9455] |
Thu, 04 January 2007 15:20 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) |
|
See http://wiki.openvz.org/Resource_shortage
Douglas G. Phillips wrote:
> I'm hitting a strange error, and I wanted to get the input of the list
> on it. When I try to execute java on the VE, I get this error:
>
> [iguana@charade ~]$ /usr/local/java/bin/java -version
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
> Could not create the Java virtual machine.
>
> If I run java from the HN, no problems, it reports the version
> information as expected.
>
> Any ideas?
>
> Information to (hopefully) help figure out what's going on:
>
> System:
> 512MB RAM, 700MHz Athlon Processor
> RedHat FC 4 (latest updates applied)
> kernel-2.6.18-ovz028test007.1
>
> VE: CentOS 4.4
>
> VZ package versions:
> vzquota-3.0.9-1
> vzctl-lib-3.0.13-1
> vzctl-3.0.13-1
>
> Output of "free" (with VE mounted and running):
> total used
> free shared buffers cached
> Mem: 513596 491788 21808 0
> 57224 385296
> -/+ buffers/cache: 49268 464328
> Swap: 819192 84 819108
>
> Output of vzmemcheck:
> Output values in %
> LowMem LowMem RAM MemSwap MemSwap Alloc Alloc Alloc
> util commit util util commit util commit limit
> 0.54 2.12 4.77 1.84 2.17 8.96 2.17 16.41
>
> These are the processes that are running (including in the VE):
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> root 1 0.0 0.1 1740 548 ? Ss 2006 0:00 init [3]
> root 2 0.0 0.0 0 0 ? S 2006 0:00
> [migration/0/0]
> root 3 0.0 0.0 0 0 ? SN 2006 0:00
> [ksoftirqd/0]
> root 4 0.0 0.0 0 0 ? S< 2006 0:00
> [events/0]
> root 5 0.0 0.0 0 0 ? S< 2006 0:00
> [khelper]
> root 6 0.0 0.0 0 0 ? S< 2006 0:00
> [kthread]
> root 13 0.0 0.0 0 0 ? S< 2006 0:00
> [kblockd/0]
> root 14 0.0 0.0 0 0 ? S< 2006 0:00 [kacpid]
> root 174 0.0 0.0 0 0 ? S< 2006 0:00
> [kseriod]
> root 237 0.0 0.0 0 0 ? S 2006 0:00
> [ubstatd]
> root 241 0.0 0.0 0 0 ? S< 2006 0:02
> [kswapd0]
> root 242 0.0 0.0 0 0 ? S< 2006 0:00 [aio/0]
> root 887 0.0 0.0 0 0 ? S< 2006 0:00 [ata/0]
> root 888 0.0 0.0 0 0 ? S< 2006 0:00
> [ata_aux]
> root 908 0.0 0.0 0 0 ? S< 2006 0:00
> [kpsmoused]
> root 911 0.0 0.0 0 0 ? S< 2006 0:00
> [kcryptd/0]
> root 912 0.0 0.0 0 0 ? S< 2006 0:00
> [kmpathd/0]
> root 913 0.0 0.0 0 0 ? S< 2006 0:00
> [kmirrord]
> root 927 0.0 0.0 0 0 ? S< 2006 0:08
> [kjournald]
> root 1007 0.0 0.0 0 0 ? S< 2006 0:00 [khubd]
> root 2153 0.0 0.0 1648 420 ? S<s 2006 0:00 udevd -d
> root 2794 0.0 0.0 0 0 ? S< 2006 0:00
> [kjournald]
> root 4115 0.0 0.0 0 0 ? S 2006 0:00 [vzmond]
> root 4146 0.0 0.1 1608 556 ? Ss 2006 0:01
> syslogd -m 0
> root 4148 0.0 0.0 1560 412 ? Ss 2006 0:00 klogd -x
> rpcuser 4179 0.0 0.1 1740 716 ? Ss 2006 0:00
> rpc.statd
> root 4220 0.0 0.1 4372 568 ? Ss 2006 0:00
> rpc.idmapd
> root 4388 0.0 0.2 4400 1064 ? Ss 2006 0:00
> /usr/sbin/sshd
> root 4426 0.0 0.1 4568 936 ? Ss 2006 0:00 crond
> root 4440 0.0 0.0 1804 428 ? Ss 2006 0:00
> /usr/sbin/atd
> dbus 4554 0.0 0.1 2548 996 ? Ss 2006 0:00
> dbus-daemon --system
> nobody 4573 0.0 0.1 2208 664 ? S 2006 0:00
> /usr/sbin/dnsmasq -s sbslocal
> root 4581 0.0 0.0 1544 452 tty3 Ss+ 2006 0:00
> /sbin/mingetty tty3
> root 4582 0.0 0.0 1548 456 tty4 Ss+ 2006 0:00
> /sbin/mingetty tty4
> root 4583 0.0 0.0 1548 452 tty5 Ss+ 2006 0:00
> /sbin/mingetty tty5
> root 4584 0.0 0.0 1544 452 tty6 Ss+ 2006 0:00
> /sbin/mingetty tty6
> root 30876 0.0 0.0 0 0 ? S 2006 0:01
> [pdflush]
> root 30879 0.0 0.0 0 0 ? S 2006 0:00
> [pdflush]
> root 349 0.0 0.2 2420 1272 ? Ss 2006 0:00 login
> -- iguana
> iguana 358 0.0 0.2 4380 1408 tty1 Ss+ 2006 0:00 -bash
> root 2237 0.0 0.0 1548 424 tty2 Ss+ Jan01 0:00
> /sbin/mingetty tty2
> root 27263 0.0 0.4 7276 2260 ? Ss 18:50 0:00 sshd:
> iguana [priv]
> iguana 27269 0.0 0.3 7436 1724 ? S 18:50 0:00 sshd:
> iguana@pts/0
> iguana 27274 0.0 0.2 4380 1436 pts/0 Ss 18:50 0:00 -bash
> root 29557 0.0 0.1 1696 600 ? Ss 19:42 0:00 init [3]
> root 29558 0.0 0.0 0 0 ? S< 19:42 0:00
> [migration/101/0]
> root 30944 0.0 0.1 1596 544 ? Ss 19:42 0:00
> syslogd -m 0
> root 30954 0.0 0.2 4080 1128 ? Ss 19:42 0:00
> /usr/sbin/sshd
> root 30967 0.0 0.1 2148 792 ? Ss 19:42 0:00
> xinetd -stayalive -pidfile /v
> root 30978 0.0 0.2 2216 1124 ? S 19:42 0:00
> /bin/sh /usr/bin/mysqld_safe
> 100 31002 0.0 2.7 100432 14260 ? Sl 19:42 0:00
> /usr/sbin/mysqld --basedir=/
> root 31030 0.0 0.3 7380 1848 ? Ss 19:42 0:00
> sendmail: accepting connectio
> smmsp 31038 0.0 0.3 6480 1628 ? Ss 19:43 0:00
> sendmail: Queue runner@01:00:
> root 31064 0.0 0.4 7660 2400 ? Ss 19:43 0:00
> /usr/sbin/httpd
> 48 31065 0.0 0.3 7660 1760 ? S 19:43 0:00
> /usr/sbin/httpd
> 48 31066 0.0 0.3 7660 1760 ? S 19:43 0:00
> /usr/sbin/httpd
> 48 31067 0.0 0.3 7660 1760 ? S 19:43 0:00
> /usr/sbin/httpd
> 48 31068 0.0 0.3 7660 1760 ? S 19:43 0:00
> /usr/sbin/httpd
> 48 31073 0.0 0.3 7660 1760 ? S 19:43 0:00
> /usr/sbin/httpd
> 48 31074 0.0 0.3 7660 1760 ? S 19:43 0:00
> /usr/sbin/httpd
> 48 31075 0.0 0.3 7660 1760 ? S 19:43 0:00
> /usr/sbin/httpd
> 48 31076 0.0 0.3 7660 1760 ? S 19:43 0:00
> /usr/sbin/httpd
> root 31081 0.0 0.1 2476 912 ? Ss 19:43 0:00 crond
> root 31242 0.0 0.4 6920 2196 ? Ss 19:59 0:00 sshd:
> iguana [priv]
> iguana 31244 0.0 0.3 6920 1604 ? S 19:59 0:00 sshd:
> iguana@pts/0
> iguana 31245 0.0 0.2 2224 1284 /vz/root/101/dev/pts/0 Ss+
> 19:59 0:00 -bash
> iguana 31467 0.0 0.1 4484 928 pts/0 R+ 20:07 0:00 ps aux
>
> From within the VE, the following programs are running:
>
> xinetd
> sendmail
> httpd
> sshd
> crond
> syslogd
> mysql
|
|
|