General :: Linux Shell Script .sh File Consumes High Memory?

Sep 8, 2010

I am having a php script which is used for bulk mailing. I run the script every minute through cron job. I have mentioned the path of the php script in a .sh file and execute the .sh file through cron job. Every time i run the script it utilizes high memory which results to server crash. how to restrict memory usage for that process to be a minimum one or how to set priority to be low for that process so that it is executed when there is no high priority jobs, so that the server runs normally without going down when the script runs

View 3 Replies


ADVERTISEMENT

Server :: Clear Cache Memory ( RHEL 5.1 ) As It Consumes Almost 100% Physical Memory?

Jan 11, 2010

let me know how to clear cache memory ( RHEL 5.1 ) as it consumes almost 100% physical memory.

View 3 Replies View Related

General :: Script That Names The Process In The System That Consumes The Most Memory?

Dec 31, 2010

I am writing a script that tells me which process consumes the most memory in the system this is what I have but I keep getting an error:

#! /bin/bash
# Autor: Jose miguel Colella
# Descripcion: Que proceso consume mas memoria

ps -e -o %mem -o args | sort -k 1 | tail -n2 | head -n1 | cut -d -f 3

I keep getting this message: cut: delimiter mist be a single character

View 4 Replies View Related

General :: GUI File Manager For Ssh/linux With A Shell - WinSCP Doesnt Work As It Locks Up?

Jul 9, 2010

I am using a server where i need to login twice. The first time i login as my boxname and pass. The 2nd login is 'root' so i can access the content of the box (i dont understand it but that hasnt stopped me from using it as normal).Now i like a GUI so i can browse files easier and drag and drop multiple files instead of using the command line. WinSCP doesnt work as it locks up. I suspect its because there is a prompt to log in again.

What can i use to drag & drop files?

View 3 Replies View Related

Ubuntu :: Fontconfig Consumes Too Much Memory

Mar 30, 2011

My Ubuntu consumes too much memory. I have checked it with memstat and have found a lot of lines like these:

[Code]...

There are more than 480 lines like this! What are these fontconfigs for? Where do they come from?

View 3 Replies View Related

OpenSUSE Hardware :: XEN Kernel Consumes Memory - How To Fix It

May 20, 2010

My computer has 4GB installed but for some reason I could only see the 2 of the 4. At first I thought that this was because the XEN virtual operating system manager was running but even after I turned it off the problem exists. I could only see and use the 2GB of memory.

Code:

free -m
total used free shared buffers cached
Mem: 1914 1874 39 0 9 295
-/+ buffers/cache: 1570 343
Swap: 2062 1934 128

View 5 Replies View Related

Ubuntu :: Rhythmbox Stalls System - Consumes All Memory

Sep 1, 2010

Rhythmbox stalls my computer. I start it and within 10-20 seconds it starts to search something (i.e. in the right bottom there appears a box with a red box sliding left and right). It consumes all my memory (1 giga) and the only thing it does is identify text files in a general directory, NOT in Music. I have completely removed the install, installed it again, the same text files earlier IDed are still there? Is there an alternative?
Computer details: Intel dual core, Nvidia, 64 bit Lucid. The flaw is that it runs on single memory.

View 3 Replies View Related

Ubuntu :: Program Convert Consumes Most Of The Computer's Memory

Oct 5, 2010

I am using ubuntu 10.10 with gnome desktop on a desktop computer (pentium 4 cpu with 1 Gb memory), and when I use OpenOffice Impress, convert opens up and uses most of my cpu power. Even worse, after closing OpenOffice and all instances of nautilus, convert stays in memory and keeps using most of my cpu power (between 30 and 75 %, acccording to system monitor.Is it normal ? How could I set up my computer to limit convert cpu usage, and to unload from memory after being used.

View 3 Replies View Related

General :: High Memory Utilization By System?

Nov 11, 2009

I have a server running samba process and there are about 70 samba users connected at a time. The system has 4Gb of memory and it seems each samba process is utilizing only 3352Kb of memory.
When I run the command
pmap -d (pid of samba)

It gives as:
b7ffa000 4 rw-s- 0000000000000000 0fd:00003 messages.tdb
bfe46000 1768 rw--- 00000000bfe46000 000:00000 [ stack ]
ffffe000 4 r-x-- 0000000000000000 000:00000 [ anon ]
mapped: 33384K writeable/private: 3352K shared: 20504K

But when I run the top command, it results as below:
Tasks: 163 total, 1 running, 162 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.9% us, 4.9% sy, 0.0% ni, 93.3% id, 0.8% wa, 0.2% hi, 0.0% si
Mem: 3895444k total, 3163192k used, 732252k free, 352344k buffers
Swap: 2097144k total, 208k used, 2096936k free, 2487636k cached

Why could the system be utilizing such high memory? By the way, the server is not running other processes. The samba version running in it is 3.0.33-0.17.

View 1 Replies View Related

Ubuntu :: High Memory Usage Under 64 Bit?

Jul 11, 2010

My problem seems to be very simple, it's high memory usage. I occasionally will use movie player to watch a few shows and I use firefox as well. My memory usage starts out real small about 500 mb but after using firefox lightly and movie player it jumps to almost 2 gigs and this is after they've been closed what gives? I've attached an image so you can see what I'm talking about.

View 7 Replies View Related

Ubuntu :: Vlc Using High Amounts Of Memory?

Apr 30, 2011

I just installed Kubuntu 11.04.

I ran VLC and it brought my PC to a halt.

I attached a picture of memory usage from htop.

Why do you think VLC is using so much system resources?

View 3 Replies View Related

Programming :: Phys_to_virt For High Memory?

Oct 18, 2010

I have a kernel module that I am trying to do a phys_to_virt() and then perform a memcpy to the returned virtual address. The problem that I'm having is that my module crashes during the memcpy when trying to do this on a physical address in high memory. Do I need to need to perform some kind a mapping operation on high memory address for this to work?

View 1 Replies View Related

Ubuntu :: Memory Use Rather High With 9.10 - Compared To Other

Apr 5, 2010

Most of my many Linux installs boot up to a memory use of 170-190 MB with no open or running programs. But with Ubuntu 9.10 it shows; 305-310 MB and the top RAM use item is the; compiz.real, which I think is a display desktop effects application. I have the nvidia video card driver installed, and that nvidia X-Server configuration tool. Also I can not find where that compiz options is at, ( the display options in system, preferances does not open, and says to use my video card tool ).

View 7 Replies View Related

Hardware :: Linux Slows Down Significantly At High Screen Resolution?

Jan 11, 2010

I'm running Ubuntu 9.10 on Athlon Barton 2600+ 2.2GHz, 1GB RAM and ATi Radeon X800 computer at 1600x1200 resolution with 2d (no compositing like Compiz).

Looking into the trouble of slow windows resizing I ended up with the observation that for 1280x1024 it's reasonably fast while at 1024x768 it's extremely fast. But 1600x1200 is my LCD's native resolution.

At 1600x1200 my computer is quite slowly responding, resizing windows or moving columns width makes it stumbling, you can see the action clearly does not go right with mouse, it's always late. KDE 4.x is way slower than Gnome.

I've tried many graphic cards (ATi, NVidia) with all possible drivers - open and proprietary, with or without 3d compositing.

Some graphic parameters:
GL_VERSION: 1.5 Mesa 7.6
GL_VENDOR: DRI R300 Project
GL_RENDERER: Mesa DRI R300 (R420 4A4A) 20090101 AGP 8x x86/MMX+/3DNow!+/SSE TCL

Glxgears gives ~4000fps with windowed mode and ~400fps at 1600x1200 maximized window. What is extremely amazing for me is that windowed mode takes 100% processor usage while 1600x200 maximized window (with window decorations) takes 30% of it, don't understand it.

Windows XP seems not to take care about 1600x1200 resolution, it's really fast.

Some more important devices from lspci:
$ lspci
00:00.0 Host bridge: nVidia Corporation nForce2 IGP2 (rev c1)
00:01.1 SMBus: nVidia Corporation nForce2 SMBus (MCP) (rev a2)
00:1e.0 PCI bridge: nVidia Corporation nForce2 AGP (rev c1)
02:00.0 VGA compatible controller: ATI Technologies Inc R420 JJ [Radeon X800SE]

View 2 Replies View Related

Debian :: High Memory Usage In Cache?

Mar 12, 2011

I've installed my debian sid about one month ago (first xfce, next gnome) but noticed that it's kind of really slow. The upgrades take ages, launching (and using) firefox takes so much time,... In comparaison to my ubuntu, archlinux (on the same computer) or previous installation of debian there is clearly a problem somewhere.Today I tried to do a "top" sorted by mem usage : 3.5% xulrunner-stub, 2.1% dropbox, 1.4% aptitude (doing upgrade), 1.4% clementine,... nothing terriblebut still I've 2.7Gb or RAM used (more than 50%)

$ free -m
total used free shared  buffers cached
Mem:  3967 26851282  0 79 1938

[code]....

View 4 Replies View Related

General :: Finding The Memory Address(in FLASH) Of A Command In Shell Script?

Mar 29, 2011

If i have a shell script to run on a Linux unit, which has a command to Reset(or say upgrade) the unit in between the script.Is it possible to find out the memory address of the next waiting command so that i can store the address to any environment variable in flash , then after Reset will continue Run from the stored address.

View 3 Replies View Related

Fedora :: Setroubleshootd: High Memory Usage After F13 To F14 Upgrade

May 11, 2011

I upgraded from Fedora 13 to 14 over the network. Everything seems to have worked. The one problem after my install is that I have noticed that setroubleshootd consumes alot of memory.

[Code]

It doesn't take long for setroubleshootd to jump in memory usage. I can kill the process but it will start up again. I have tried disabling the service but it doesn't show up in /etc/init.d. # service setroubledshootd stop setroubledshootd: unrecognized service So I am not sure what I can do to resolve the issue with setroubleshootd besides killing it off every 15 minutes.

View 3 Replies View Related

Red Hat / Fedora :: Memory Usage Always High And Utilizing Full?

Jul 14, 2010

In our database, when checking the memory used using top command, we are always seeing 32 GB RAM utilized. We have set the sga_max_size to 8gb and PGA to 3 gb. We have tried shutting down oracle db and then the memory went down to 24GB when checked using top command. After cold reboot of the DB server, it gone down to 1.5 GB.

But once the users are started using after end of day, the memory again gone back to 32 GB.

Top Command output (truncated)
======================
top - 15:18:27 up 5 days, 19:43, 1 user, load average: 0.55, 0.39, 0.32
Tasks: 599 total, 3 running, 596 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.5%us, 0.4%sy, 0.0%ni, 97.9%id, 0.1%wa, 0.0%hi, 0.1%si, 0.0%st Mem: 32949628k total, 32823336k used, 126292k free, 238808k buffers

[Code]....

View 2 Replies View Related

General :: Generated .exe File From C File - Run .exe File When Linux System Starts Up?

Apr 6, 2010

i have generated .exe file from C file (ie filename.c ) after compiling in linux machine with -O option. I wish to know about how to run that .exe file when linux system starts up ?

View 3 Replies View Related

Security :: Hard Disk Memory Usage Weirdly High

Apr 2, 2010

i am having a problem that i would call a bit "important" with my server. so, from last 3 weeks the used space of my hard disk (RAID I) started growing up. i have 2 x 1 tb HDD working on RAID I and i did not install anything those weeks. the space just started changing from 90 GB till 580 GB. now the situation is stable there but i think it's not normal.

the bandwidth usage is low (like 120 gb in 2 months) and i am running 6 counter strike gameservers, a forum, a very little website and some local stuffs... a friend of mine told me that my server could have been hacked but i am afraid it did... some useful informations: when i reboot the server the used space goes down again to ~100 GB and then it starts going up again. i cant really find where all those files are located:

[Code]...

View 2 Replies View Related

General :: Process Billions Of Small Files Using Bash Shell Commands With Limited Memory?

May 26, 2010

I need to process billions of small files using bash shell commands with limited memory size (256MB). If any of those files contain certain "keywords", the file will be removed. I tried with command:

find . -type f -exec grep -i -l -H "keyword" '{}' + | xargs rm -rf

where all files are located within the current directory. But the command above failed in "out of memory".

View 1 Replies View Related

Ubuntu Servers :: Consequences Of Giving PHP Scripts A High Memory Limit?

May 28, 2010

I have an Ubuntu server running in our small office. Among its many duties is report generation. It uses PHP and DOMPDF (a PHP library for converting HTML/CSS to PDFs for printing). PHP's default memory limit of 32MB is not even close to being enough to pull large amounts of data from the database and generate images/tables/PDFs with that data.

I increased the memory limit to 64MB and that is adequate for reports under 3 pages or so (varies based on table complexity, images, etc). If any user tries to generate a report longer than that, PHP just throws a "out of memory" error and doesn't make the report.

My question is: what are the possible consequences of increasing the memory limit yet again to 128MB or maybe even higher? The server isn't terribly powerful. It has 2GB RAM and 4GB swap space. I know that isn't much but this is a small office and at most I can only see two or three people trying to run reports at the same time. As for security, apache is currently only serving pages in the local network, but sometime within the next year I'll probably have it hosting a public website (currently using a hosting service). Is a high memory limit a potential security risk when exposed to the internet?

EDIT: Sorry, PHP's default memory limit is 16 not 32 as I said. Question still stands, however

View 5 Replies View Related

Ubuntu :: Make A Program Crash If System Memory Usage Gets Too High?

Jul 19, 2010

Basically I have a machine with 16GB of RAM and have just discovered that using all of it can crash the whole system over one process. How could I run a process on the system in such a way that if more than 90% of system memory is used, the process immediately crashes?

View 3 Replies View Related

Ubuntu :: Gnome-settings-daemon Ultra High Memory Usage After Suspend?

Oct 19, 2010

I recently upgraded to Ubuntu 10.10 and I am experiencing an ultra high memory usage of the gnome-settings-daemon of 2GB after suspend! Killing and restarting the daemon solves the issue. Anybody else with this behavior?

View 6 Replies View Related

Fedora :: Slow Down High Nautilus Memory Usage After Loading Folder With Lots Of Images?

Nov 22, 2010

I was browsing my folder with lots of images, after finished i close nautilus and i notice that my computer became slow, so i'll check it with system monitor and had found that nautilus are using almost 100mb of ram (opening 4 tabs). I'm not sure if this was normal or not because i try to reopen the same folder with pcmanfm and it only consumes less than 20mb of ram (opening 4 tabs).
here's the screenshot from system monitor .

View 4 Replies View Related

General :: Read .gz File Direct On Shell/terminal Without Decompressing The File?

Dec 9, 2008

How can I read .gz file direct on shell/terminal without decompressing the file?
satimis

View 5 Replies View Related

General :: Shell Script That Adds Users Name To A File When The File Is Modified?

Mar 30, 2010

I need a shell script that will add the users name and date to a file when the user has modified the file, these files are within a group and only accessible to this group. But we need a way for people in the group to know who and when the file was last modified.

View 1 Replies View Related

General :: Convert Binary File In To Ascii File Using Shell Script?

May 23, 2011

i am trying to convert a binary file in to ASCII using shell script. this file contains multiple types of data like string, number, bcd, etc.

View 5 Replies View Related

General :: Printing From Bash Shell / Concatenate Files Into One File With File Names Included?

May 11, 2011

I am supposed to take some small files, and print them to a specific printer, such that the small files are concatenated into one file. The file name has to be included in the file that gets printed.

Should I be looking to concatenate the files into one file with the file names included, and then print them?

something like: -printfunction -printername < file*

View 7 Replies View Related

General :: File / Folder Permissions And Groups On Linux With Apache?

Jun 26, 2010

I'm trying to learn about permissions on linux webserver with apache.Some clues to the system: The server I have to play around with is Fedora based. Apache runs as apache:apache. To allow for e.g. php to write to a file the file needs to be chmod 777. 755 is not sufficiant.What I'm wondering is basically how set up permissions like they should be on e.g. a "shared web host".My main problem is that if I set a permission so that one user cannot access anothers home folder, then apache can't read from the public_html folder either.

To keep the users out I need to set chmod 700. But to let apache to read I need to have at least execute on world,so a 701 basically works, but won't let some users in.So I'm really stuck on what to do. Have been concidering adding the apache user to the frous grours
below to avoid having to add the world execute flag, but is that a bad thing? Should it be the other way around, the users in the groups below should also be in the apache group?I was aiming at having 4 groups:

1. webapp: same as dev_int, but is the only one that can go inside the webapp/live folder to e.g. do an update from the repo.

2. dev_int: can read,write and execute everything in the "web root", including the two below, but nothing outside of the web root

3. dev_ext: can read write and execute in all client folders, but cannot access anything outside of the webapp root

4. clientsBasic ftp accounts. Has a home folder with a public_html, but cannot access any other home folders

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved