LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-11-2008, 01:22 AM   #1
ajeetraina
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu,Red Hat, Fedora
Posts: 292

Rep: Reputation: 30
Freeing Memory on Vmware running machine??


Hello Guys,

I have a Ubuntu Fiesty Server running two VMware Instances : CentOS and Windows Xp.I need to run Tomcat Server but I have no enough RAM on it.
My Output of few commands are:
-------------------------------------------------
Command 1:
Code:
vjs@vjs:~$ free -m
             total       used       free     shared    buffers     cached
Mem:          1003        990         12          0         98        660
-/+ buffers/cache:        231        771
Swap:         9538         33       9504
--------------------------------------------------------------
Command 2:
Code:
$top

top - 11:44:43 up 17 days, 23:09,  2 users,  load average: 0.05, 0.06, 0.02
Tasks:  92 total,   1 running,  91 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.3%us,  2.7%sy,  0.0%ni, 97.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   1027480k total,  1014456k used,    13024k free,   100968k buffers
Swap:  9767512k total,    34684k used,  9732828k free,   675872k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 8794 vjs        5 -10  383m 286m 274m S    5 28.6 722:03.41 vmware-vmx
10660 vjs        5 -10  364m 290m 280m S    1 29.0 154:16.59 vmware-vmx
 8808 vjs        0 -20     0    0    0 S    0  0.0  53:28.93 vmware-rtc
    1 root      15   0  2912 1844  524 S    0  0.2   0:01.48 init
    2 root      RT   0     0    0    0 S    0  0.0   0:00.01 migration/0
    3 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/0
    4 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/0
    5 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/1
    6 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/1
    7 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/1
    8 root      10  -5     0    0    0 S    0  0.0   0:00.00 events/0
    9 root      10  -5     0    0    0 S    0  0.0   0:00.00 events/1
   10 root      13  -5     0    0    0 S    0  0.0   0:00.00 khelper
   11 root      10  -5     0    0    0 S    0  0.0   0:00.00 kthread
   35 root      10  -5     0    0    0 S    0  0.0   0:00.04 kblockd/0
   36 root      12  -5     0    0    0 S    0  0.0   0:00.04 kblockd/1
   37 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpid
   38 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpi_notify
  125 root      17  -5     0    0    0 S    0  0.0   0:00.00 kseriod
  154 root      10  -5     0    0    0 S    0  0.0   1:03.45 kswapd0
  155 root      11  -5     0    0    0 S    0  0.0   0:00.00 aio/0
  156 root      11  -5     0    0    0 S    0  0.0   0:00.00 aio/1
  784 root      15   0     0    0    0 S    0  0.0   0:00.03 kirqd
 2006 root      15  -5     0    0    0 S    0  0.0   0:00.00 ksuspend_usbd
 2007 root      14  -5     0    0    0 S    0  0.0   0:00.00 khubd
 2141 root      10  -5     0    0    0 S    0  0.0   0:45.27 ata/0
 2142 root      10  -5     0    0    0 S    0  0.0   0:18.80 ata/1
 2143 root      19  -5     0    0    0 S    0  0.0   0:00.00 ata_aux
 2153 root      16  -5     0    0    0 S    0  0.0   0:00.00 scsi_eh_0
 2154 root      10  -5     0    0    0 S    0  0.0   6:59.21 scsi_eh_1
 2336 root      10  -5     0    0    0 S    0  0.0   0:23.86 kjournald
 2535 root      17  -4  2860  468  360 S    0  0.0   0:00.19 udevd
 3456 root      15  -5     0    0    0 S    0  0.0   0:00.00 kpsmoused
 3580 root      20  -5     0    0    0 S    0  0.0   0:00.00 hda_codec
 3908 root      10  -5     0    0    0 S    0  0.0   0:00.00 kjournald
 3910 root      10  -5     0    0    0 S    0  0.0   0:23.35 kjournald
 4240 root      18   0  1648  508  440 S    0  0.0   0:00.00 getty
-----------------------------------------------------------
Code:
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1   2912  1844 ?        Ss   Feb22   0:01 /sbin/init
root         2  0.0  0.0      0     0 ?        S    Feb22   0:00 [migration/0]
root         3  0.0  0.0      0     0 ?        SN   Feb22   0:00 [ksoftirqd/0]
root         4  0.0  0.0      0     0 ?        S    Feb22   0:00 [watchdog/0]
root         5  0.0  0.0      0     0 ?        S    Feb22   0:00 [migration/1]
root         6  0.0  0.0      0     0 ?        SN   Feb22   0:00 [ksoftirqd/1]
root         7  0.0  0.0      0     0 ?        S    Feb22   0:00 [watchdog/1]
root         8  0.0  0.0      0     0 ?        S<   Feb22   0:00 [events/0]
root         9  0.0  0.0      0     0 ?        S<   Feb22   0:00 [events/1]
root        10  0.0  0.0      0     0 ?        S<   Feb22   0:00 [khelper]
root        11  0.0  0.0      0     0 ?        S<   Feb22   0:00 [kthread]
root        35  0.0  0.0      0     0 ?        S<   Feb22   0:00  \_ [kblockd/0]
root        36  0.0  0.0      0     0 ?        S<   Feb22   0:00  \_ [kblockd/1]
root        37  0.0  0.0      0     0 ?        S<   Feb22   0:00  \_ [kacpid]
root        38  0.0  0.0      0     0 ?        S<   Feb22   0:00  \_ [kacpi_notify]
root       125  0.0  0.0      0     0 ?        S<   Feb22   0:00  \_ [kseriod]
root       154  0.0  0.0      0     0 ?        S<   Feb22   1:03  \_ [kswapd0]
root       155  0.0  0.0      0     0 ?        S<   Feb22   0:00  \_ [aio/0]
root       156  0.0  0.0      0     0 ?        S<   Feb22   0:00  \_ [aio/1]
root      2006  0.0  0.0      0     0 ?        S<   Feb22   0:00  \_ [ksuspend_usbd]
root      2007  0.0  0.0      0     0 ?        S<   Feb22   0:00  \_ [khubd]
root      2141  0.0  0.0      0     0 ?        S<   Feb22   0:45  \_ [ata/0]
root      2142  0.0  0.0      0     0 ?        S<   Feb22   0:18  \_ [ata/1]
root      2143  0.0  0.0      0     0 ?        S<   Feb22   0:00  \_ [ata_aux]
root      2153  0.0  0.0      0     0 ?        S<   Feb22   0:00  \_ [scsi_eh_0]
root      2154  0.0  0.0      0     0 ?        S<   Feb22   6:59  \_ [scsi_eh_1]
root      2336  0.0  0.0      0     0 ?        S<   Feb22   0:23  \_ [kjournald]
root      3456  0.0  0.0      0     0 ?        S<   Feb22   0:00  \_ [kpsmoused]
root      3580  0.0  0.0      0     0 ?        S<   Feb22   0:00  \_ [hda_codec]
root      3908  0.0  0.0      0     0 ?        S<   Feb22   0:00  \_ [kjournald]
root      3910  0.0  0.0      0     0 ?        S<   Feb22   0:23  \_ [kjournald]
root     10676  0.0  0.0      0     0 ?        S    Mar03   0:02  \_ [pdflush]
root     10909  0.0  0.0      0     0 ?        S    Mar03   0:59  \_ [pdflush]
root       784  0.0  0.0      0     0 ?        S    Feb22   0:00 [kirqd]
root      2535  0.0  0.0   2860   468 ?        S<s  Feb22   0:00 /sbin/udevd --daemon
root      4240  0.0  0.0   1648   508 tty4     Ss+  Feb22   0:00 /sbin/getty 38400 tty4
root      4241  0.0  0.0   1652   512 tty5     Ss+  Feb22   0:00 /sbin/getty 38400 tty5
root      4243  0.0  0.0   1652   512 tty2     Ss+  Feb22   0:00 /sbin/getty 38400 tty2
root      4245  0.0  0.0   1648   508 tty3     Ss+  Feb22   0:00 /sbin/getty 38400 tty3
root      4247  0.0  0.0   1648   508 tty1     Ss+  Feb22   0:00 /sbin/getty 38400 tty1
root      4248  0.0  0.0   1652   512 tty6     Ss+  Feb22   0:00 /sbin/getty 38400 tty6
root      4511  0.0  0.1   2260  1180 ?        Ss   Feb22   0:00 /usr/sbin/acpid -c /etc/acpi/events -s /var/run/acpid.socket
root      4628  0.0  0.0   1824   772 ?        Ss   Feb22   0:00 /sbin/syslogd
root      4685  0.0  0.0   1796   528 ?        Ss   Feb22   0:00 /bin/dd bs 1 if /proc/kmsg of /var/run/klogd/kmsg
klog      4687  0.0  0.1   2428  1372 ?        Ss   Feb22   0:00 /sbin/klogd -P /var/run/klogd/kmsg
103       4708  0.0  0.0   2716   972 ?        Ss   Feb22   0:00 /usr/bin/dbus-daemon --system
107       4726  0.0  0.8  10320  8624 ?        Ss   Feb22   0:01 /usr/sbin/hald
root      4727  0.0  0.0   2876  1020 ?        S    Feb22   0:00  \_ hald-runner
107       4733  0.0  0.0   2096   884 ?        S    Feb22   0:00      \_ hald-addon-acpi: listening on acpid socket /var/run/
107       4743  0.0  0.0   2096   896 ?        S    Feb22   0:00      \_ hald-addon-keyboard: listening on /dev/input/event2
107       4746  0.0  0.0   2100   900 ?        S    Feb22   0:00      \_ hald-addon-keyboard: listening on /dev/input/event3
107       4758  0.0  0.0   2100   924 ?        S    Feb22   0:29      \_ hald-addon-storage: polling /dev/scd0
root      4771  0.0  0.0   1936   872 ?        Ss   Feb22   0:00 /usr/sbin/dhcdbd --system
dhcp      4908  0.0  0.1   2456  1212 ?        S    Feb22   0:00  \_ /sbin/dhclient -1 -lf /var/lib/dhcp3/dhclient.eth0.lease
root      4786  0.0  0.1  12320  1936 ?        Ssl  Feb22   0:00 /usr/sbin/NetworkManager --pid-file /var/run/NetworkManager/
avahi     4804  0.0  0.1   2756  1412 ?        Ss   Feb22   0:03 avahi-daemon: registering [vjs.local]
avahi     4805  0.0  0.0   2664   460 ?        Ss   Feb22   0:00  \_ avahi-daemon: chroot helper
root      4821  0.0  0.1   3056  1264 ?        Ss   Feb22   0:00 /usr/sbin/NetworkManagerDispatcher --pid-file /var/run/Netwo
root      4834  0.0  0.0   2868   804 ?        Ss   Feb22   0:00 /usr/bin/system-tools-backends
root      4835  0.0  0.1   2716  1220 ?        S    Feb22   0:00  \_ dbus-daemon --session --print-address --nofork
root      4883  0.0  0.1  12188  1240 ?        Ss   Feb22   0:00 /usr/sbin/gdm
root      4884  0.0  0.2  12548  2100 ?        S    Feb22   0:00  \_ /usr/sbin/gdm
root      4887  0.0  0.8  13712  9196 tty7     Ss+  Feb22   0:00      \_ /usr/X11R6/bin/X :0 -br -audit 0 -auth /var/lib/gdm/
gdm       5178  0.0  1.5  24884 15620 ?        Ss   Feb22   0:01      \_ /usr/lib/gdm/gdmgreeter
root      4987  0.0  0.0   6412   836 ?        Ss   Feb22   0:00 /usr/sbin/hpiod
hplip     4995  0.0  0.4   9988  4896 ?        S    Feb22   0:00 python /usr/sbin/hpssd
root      5137  0.0  0.0   2348   864 ?        Ss   Feb22   0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive
root      5141  0.0  0.0   2696  1000 ?        Ss   Feb22   0:00 /usr/sbin/hcid -x -s
root      5163  0.0  0.0      0     0 ?        S<   Feb22   0:00 [krfcommd]
daemon    5202  0.0  0.0   1908   420 ?        Ss   Feb22   0:00 /usr/sbin/atd
root      5216  0.0  0.0   2280   900 ?        Ss   Feb22   0:00 /usr/sbin/cron
root      5278  0.0  0.0   1504   160 ?        S    Feb22   0:00 /usr/bin/vmnet-bridge -d /var/run/vmnet-bridge-0.pid /dev/vm
root      5282  0.0  1.6  20048 16580 ?        Ss   Feb22   3:57 /usr/sbin/vmware-serverd -s -d
root      5351  0.0  0.0   5088   972 ?        Ss   Feb22   0:00 /usr/sbin/sshd
root     17562  0.0  0.2   7888  2404 ?        Ss   Mar10   0:00  \_ sshd: vjs [priv]
vjs      17564  0.0  0.1   7888  1644 ?        S    Mar10   0:00  |   \_ sshd: vjs@pts/0
vjs      17565  0.0  0.2   5512  3064 pts/0    Ss+  Mar10   0:00  |       \_ -bash
root     17590  0.0  0.2   7892  2360 ?        Ss   Mar10   0:00  \_ sshd: vjs [priv]
vjs      17592  0.0  0.1   8056  1688 ?        S    Mar10   0:01  |   \_ sshd: vjs@notty
vjs      17593  0.0  0.1   4588  1504 ?        Ss   Mar10   0:00  |       \_ /usr/lib/openssh/sftp-server
root     17599  0.0  0.2   7892  2360 ?        Ss   Mar10   0:00  \_ sshd: vjs [priv]
vjs      17601  0.0  0.1   8056  1660 ?        S    Mar10   0:00  |   \_ sshd: vjs@notty
vjs      17602  0.0  0.1   4352  1256 ?        Ss   Mar10   0:00  |       \_ /usr/lib/openssh/sftp-server
root     18048  0.0  0.2   7892  2396 ?        Ss   11:30   0:00  \_ sshd: vjs [priv]
vjs      18050  0.0  0.1   8052  1548 ?        S    11:30   0:00      \_ sshd: vjs@pts/1
vjs      18051  0.0  0.2   5500  3028 pts/1    Ss   11:30   0:00          \_ -bash
vjs      18076  0.0  0.0   2532   964 pts/1    R+   11:45   0:00              \_ ps -auxf
vjs       8163  0.0  0.4  10508  4548 ?        Ss   Feb28   0:00 /usr/lib/vmware/bin/vmware-vmx -C /opt/WinXP/Windows XP Prof
vjs       8794  4.2 28.5 392276 293440 ?       S<sl Feb28 722:06 /usr/lib/vmware/bin/vmware-vmx -C /home/vjs/Desktop/Centos 4
vjs       8808  0.3  0.0      0     0 ?        S<   Feb28  53:29 [vmware-rtc]
vjs      10660  1.3 28.9 373344 297824 ?       S<sl Mar03 154:17 /usr/lib/vmware/bin/vmware-vmx -C /var/lib/vmware/Virtual Ma
cupsys   17955  0.0  0.1   4720  1852 ?        SNs  08:53   0:00 /usr/sbin/cupsd
-----------------------------------------------------------
Please Do help me so that I can run Tomcat And other applications.
 
Old 03-11-2008, 07:40 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
Quote:
Originally Posted by ajeetraina View Post
I need to run Tomcat Server but I have no enough RAM on it.
You don't seem to run much apps that hog RAM in a way that shutting them down would free much of it, and Tomcat means problems with Java gobbling up memory anyway. So next to running only one VM, adding RAM is the only common sense thing I can suggest. Anything else will probably only cause swapping, resulting in more swapping, in essence a downward spiral, performance-wise.
 
Old 03-11-2008, 08:46 AM   #3
xabin
LQ Newbie
 
Registered: Mar 2008
Posts: 4

Rep: Reputation: 0
You have 771mb unused cache mem, so what is the problem?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Running Solaris 10 (11/06) Virtual Machine on CentOS 5.0 (VMWare Server 1.0.3) LXer Syndicated Linux News 0 05-25-2007 12:46 AM
Freeing Up Used Memory zoso Linux - Newbie 7 01-11-2005 09:44 PM
eth0 not working on fedora running in VMware 4 on WinXP pro machine ratgod Linux - Networking 14 06-25-2004 04:45 PM
Running Slack 9.1 in a VMWare machine? Dee-ehn Slackware 4 04-20-2004 10:11 AM
Freeing up Memory DigiCrime Linux - General 5 09-30-2003 07:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration