I have a running jboss application server 5 on RHEL 6.After few days it is noticed that the memory usage is at maximum.When the services of jboss are restared all of the memory is left free?I am unable to diagnose the issue?
Memory assigned is 24GB heap size is 16 GB.
I'm currently using the command below, to output the memory usage of a debian system in bash scripts.
Code:
memusage=$(memusage=$(/usr/bin/free | grep Mem | awk '{print $3/$2 * 100.0 "%"}' | cut -d "%" -f1);echo "$(printf "%0.0f\n" $memusage)") && echo Memory Usage is $memusage
Being new to Linux though, I just found out that Linux takes up a lof of memory and puts it in cached.
Code:
root@Client1:~# free -m
total used free shared buffers cached
Mem: 927 799 128 0 15 754
-/+ buffers/cache: 28 898
Swap: 99 0 99
So the first command will actually output that the memory usage is 87%, when in reality is not. Its actually thinking that the memory usage is high because its also counting the cached memory, as used memory.
How can I modify the first command not to consider cached memory, as used memory?
Thanks
Hello,
So I'm not sure if this is a real issue, my understanding is that when a system reboots the virtual memory is dumped in the process. Is there some configuration that would keep the memory intact after rebooting? I'm on RedHat 6 enterprise server, and I just need to make sure that virtual memory is cleared upon reboot. I'm not sure where to look to make sure this is happening.
thank you.
I want to know the approximate maximum memory usage by my process. If I start the process using "time -v <myprocess>", I get the output after it terminates. This works fine in RedHat Enterprise Linux, but not in Centos. There does not seem to be an option "-v" for time. Do I miss anything ? What is the equivalent in Centos to know the peak memory usage by a process ?
I have this question which give me a file.tar.gz which include a calculator file and want to extract and run it
in the output it wants to show
1)cpu avg usage
2)total time taken to run
3)memory and I/O usage
can anyone help???
I don't know if anyone can help with this question, but I have an old Samsung R40 Laptop which used to run Windows XP. The specs show that it will not upgrade to Windows 7,8 or any other OS beyond XP. Yesterday I wiped the HDD clean and installed Linux Mint 17.1 Cinnamon which looks good and runs a little slowly but without problems. The Laptop is in good condition therefore I thought I would upgrade it by adding more memory to speed it up. The Memory installed is 2x512mbs PC2-3200S-333 DDR2 200pin, unfortunately I have not been able to obtain any. I would like to double the memory to 2x1gb (2056mbs). If anyone knows for certain where I can get this memory (or Compatible) in the UK or Europe I would be most grateful.
Thanks,
gael.
Hi Linux Guru's
We have a running jboss7 app from our servers, I am just wondering although our dev people has a strong stop-start jboss script, we still got an output of two PID's after the start of jboss7. So we just assumed the old PID becomes on stale state but we are still not sure. May I know is there anyone encounter this same situataion? Does the "what-we-so-called stale PID" still eat memory resources of the server?
[pogi@gorgeous_server log]$ ps -ef | grep standalone
pogi 10664 6724 0 22:27 pts/1 00:00:00 grep standalone
pogi 14114 1 0 Mar10 ? 00:00:00 /bin/sh /opt/pogi/pkg/jboss-pogi/bin/standalone.sh -c=standalone.xml -b=0.0.0.0
pogi 14207 14114 99 Mar10 ? 4-21:59:53 /opt/pogi/pkg/sunjdk6_25/bin/java -D[Standalone] -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms12G -Xmx12G -XX:MaxPermSize=256m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/pogi/log -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml -Djava.io.tmpdir=/opt/pogi/.cache -Xloggc:/opt/pogi/log/gc.log -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -Dorg.jboss.boot.log.file=/opt/pogi/pkg/jboss-pogi/standalone/log/boot.log -Dlogging.configuration=file:/opt/pogi/pkg/jboss-pogi/standalone/configuration/logging.properties -jar /opt/pogi/pogi/jboss-pogi/jboss-modules.jar -mp /opt/pogi/pkg/jboss-pogi/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=/opt/pogi/pkg/jboss-pogi -c=standalone.xml -b=0.0.0.0
pogi 10664 6724 0 22:27 pts/1 00:00:00 grep standalone
pogi 14344 1 0 Mar8 ? 00:00:00 /bin/sh /opt/pogi/pkg/jboss-pogi/bin/standalone.sh -c=standalone.xml -b=0.0.0.0
pogi 23421 14114 99 Mar8 ? 4-21:59:53 /opt/pogi/pkg/sunjdk6_25/bin/java -D[Standalone] -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms12G -Xmx12G -XX:MaxPermSize=256m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/pogi/log -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml -Djava.io.tmpdir=/opt/pogi/.cache -Xloggc:/opt/pogi/log/gc.log -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -Dorg.jboss.boot.log.file=/opt/pogi/pkg/jboss-pogi/standalone/log/boot.log -Dlogging.configuration=file:/opt/pogi/pkg/jboss-pogi/standalone/configuration/logging.properties -jar /opt/pogi/pogi/jboss-pogi/jboss-modules.jar -mp /opt/pogi/pkg/jboss-pogi/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=/opt/pogi/pkg/jboss-pogi -c=standalone.xml -b=0.0.0.0
I recently installed elementaryOS and everything was working fine until I changed the drivers in the Additional Drivers section.
I then tried changing back to the drivers previously used and others but to no avail. I can see the menu bar at the top and run applications, but the whole desktop just appears black.
Here is some info.
Code:
01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 310] (rev a2)
*-display
description: VGA compatible controller
product: GT218 [GeForce 310]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a2
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: irq:44 memory:fa000000-faffffff memory:d0000000-dfffffff memory:ce000000-cfffffff ioport:ec00(size=128) memory:fbe80000-fbefffff
[1]+ Done lspci | grep --color=auto VGA
How can I fix this issue?
I am new to LINUX and am trying to install Fedora 20 on an ACER Aspire Z5600, the specs are as follows : Pentium Dual Core 64-bit 2.7 GHz processor, 3 GB RAM and well over 100 GB of free HDD space.
When it starts I get the message: not enough memory to load image.
Not sure what the problem is.
Hey everybody!
I am (quite) new to the world of linux, but have been trying out a few of the most basic distros (ubuntu-based ones).
I am now using elementary os luna, and i have a problem with installing my nvidia drivers.
I have really been googling my ass off to find this on my own, but without any results that actually worked for me.
So, i have a HP Envy laptop, with a geforce gt 740m, and i have searched nvidias homepage to find out that the up-to-date driver for me would be the 346 driver. I tried it on Linux mint xfce, and i successfully installed it. I had to add the xorg ppa repository of course, and updated it as well, but when i do the same procedure here on my elementary os, i cant reach the login screen after my reboot.
When i use the lspci -vnn command in the terminal, i get this info on my graphics driver:
01:00.0 3D controller [0302]: NVIDIA Corporation GK208M [GeForce GT 740M] [10de:1292] (rev a1)
Subsystem: Hewlett-Packard Company Device [103c:1961]
Flags: fast devsel, IRQ 16
Memory at d2000000 (32-bit, non-prefetchable) [size=16M]
Memory at a0000000 (64-bit, prefetchable) [size=256M]
Memory at b0000000 (64-bit, prefetchable) [size=32M]
I/O ports at 4000 [size=128]
Expansion ROM at b2000000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel modules: nouveau, nvidiafb
I really hope someone knows how to fix my problem.
Thanks in advance!
/Andreas
Hi Y'all,
Greetings from Snowy NC.
First post with first Linux issue.
Attempting to load Linux .iso distros (both dnlds and commercial (from mags & bought sampler cd pkg online) to see which one I want to go with.
My ACER M3011 desktop athlon 64 x2 w/2GB Mem, dsk =320GB had Vista but I can't restore any longer so I'll go Linux.
After much online research dnlded & installed Zorin Lite w/o issues. However, when attempting to boot 32bit or 64 bit versions of MINT 17.1 or DEEPIN 14.2, recvd NOT ENOUGH MEMORY FOR IMAGE msg. Installed 4 more GB ( the BIOS sees it; total 6). Same NOT ENOUGH MEMORY msg. I have searched all the threads for similar issues w/o finding any. I would appreciate suggestions on where to start.
Thank you, Robert Hall
UPDATE;; After finding suggestions on other forums have tried the trick of adding the mem=1024m, and mem=1G, and mem=4G
during the boot process. Get a whole bunch further into the kernal boot now, but always hangs at the "[7.360454] random:
nonblocking pool is initialized" line.
TIA
RH