Server :: Does RES In Top Reflect Any Shared Memory?

Apr 20, 2010

I am trying to troubleshoot an Apache/Mysql server that once every few days falls over due to memory starvation. I thought I had tuned my httpd.conf file with relativley small MaxClients and so on, but then noticed some unusual RES values in top while monitoring.

In short, `top -b -n1 -u apache` shows that I have 28 httpd processes. their VIRT is ~300MB for each process (I understand this is shared), and the RES ~50MB for each. I thought this wasn't shared. Is this true? I just noticed 2 of the processes jump to 1.2g. If RES represents non-shared memory then concievably 1.2g x 28 processes would be a problem on an 8GB server.

View 2 Replies


ADVERTISEMENT

CentOS 5 Server :: Apache - Anonymous Shared Memory Failure

Jan 12, 2010

I just opened an (unmanaged) VPS account and and have been encountering nothing but problems with trying to get Apache up and running (its something I've done many times before).Basically the inital error was with LDAP not having enough space, so I disabled the related extensions and Apache still would not run. Looking at the log, it contains: (28)No space left on device: Unable to create scoreboard (anonymous shared memory failure)

View 1 Replies View Related

Programming :: Create A Shared Memory And Some Shared Objects?

Jun 11, 2010

I want to create a "Shared Memory" in linux, then create multiple "Shared Objects" that can access to a Table for example; And one of them can write something into the Table and the other can access and read it, so that these operations can be handled by programmer! I'm using Ubuntu 9.04 and I've set it's runlevel at 3 (I have commandline environment now!) I've searched the Internet so much, but couldn't find a good sample code for this! I have no experience about it and need your help to introduce me a sample code about it and advise me how to compile and use it with "GCC"?!

View 6 Replies View Related

Ubuntu Servers :: Configure The Server To Reflect The New Settings Of The New Service Provider?

Jun 4, 2011

I am a newbie to linux and running ubuntu server 10.10 (no gui), I had it configured with a fixed ip address and all was fine till I changed internet poroviders and got issued with a new router.

I am trying to configure the server to reflect the new settings of the new service provider. here are the contents of /etc/network/interfaces

Code:
auto eth0
iface eth0 inet static
address 192.168.15.52
netmask 255.255.255.128
gateway 192.168.15.1

Just so I got this right can someone tell me if I am right here. address is the IP I wish to give to my server statically. and gateway is the ip of the router. When I try to ping the router I get

Code:
Ping 192.168.15.1 (192.168.15.1) 56(84) bytes of data.
From 192.168.15.1 icmp_seq=1 Destrination Host unreachable
When I try to ping the internet i get :

[Code]...

Is there anyone that can shed some light on where my problem may be. As i said before I got the new router I had been working with the server no problem.

View 9 Replies View Related

Programming :: Shared Memory IPC Variations ?

Apr 19, 2010

I have 2 applications that send and receive messages through shared memory IPC. When I run the app ..it works but the number of messages per sec keeps changing drastically sometimes it is 400-500 per sec..then 800 then 1200 then 2000. is this normal with SHM IPC or could it be a code related issue.

View 9 Replies View Related

Hardware :: Shared Memory Is Only Using 4 Gigs Of Ram?

Feb 4, 2011

how come shared memory is only using 4 gigs of ram?

Code:

localhost router # free -m
total used free shared buffers cached
Mem: 8001 858 7142 0 130 235
-/+ buffers/cache: 492 7508

[code]...

View 3 Replies View Related

Red Hat :: Shared Memory Limitations In RHEL AS 4?

Jul 16, 2010

Does anyone know if there is a size limitation for shared-memory segments in RHEL AS 4?

View 1 Replies View Related

Debian Configuration :: Shared Memory Segments ?

Apr 5, 2010

I'm running a Debian based distro.

When I run ipcs this pops up:

This happens only while KDE3 is running. Regardless of the runlevel, if kdm is not started, this will not show.

By running ipcs -p the PID points to process

Is there anything wrong with that command?

View 8 Replies View Related

Red Hat / Fedora :: Unable To Remove Shared Memory?

Aug 20, 2010

When I boot into Linux i see some shared memory which is blocked, due to this I am unable to start my processes which needs some shared memory.I tried removing the shared memory using ipcrm -m but no use, the shared memory is not cleaned but its still in use.I tried removing the shared memory using root user also normal user but unable to remove the shared memory.

[pin01]$ ipcs -m
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status

[code]...

View 1 Replies View Related

Software :: Shared Memory Between Fortran & C++ Applications?

May 7, 2010

I have to figure out how to pass data between a Fortran application and a C++ application. The memory has to be locked/unlocked to prevent data corruption. I know very little about Fortran. I have done mutex lock/unlock stuff in Linux apps, multi-threaded, using mutex locks before.

Digging around on the Web, I do not find any info on a Fortran app including linux headers, library calls such as those in ipc.h, shm.h and sem.h. What is an approach to this problem?

View 1 Replies View Related

Programming :: Dynamic Memory Across Shared Libraries

Jun 1, 2009

Any good tutorial on sharing dynamically allocated objects across shared libraries in the same process and between shared libaries and main(). In particular, I need to know what creation and destruction sequences are valid when libraries are being loaded and unloaded. For example, is it valid to allocate an object from inside a shared library procedure, and then delete that pointer from a different module, especially in the case where the allocating module has already been unloaded.

I imagine there might be all kinds of problems with this. Although my preliminary tests seem to work most of the time, I get crashes from time to time, but I'm not sure if they're caused by memory management or by threading issues. I've been restructuring my code to use a global context object to manage object creation and destruction from main(), but I'd like to find a clear exposition of the specific issues I'm dealing with before I go too much further.

View 4 Replies View Related

Programming :: Getting Segmentation Fault Using Shared Memory?

Jan 8, 2011

I'm writing a producer-consumer program, where the producer and the consumer are different processes and they communicate using queued signals, and when I run it it comes out always 'segmentation fault'.

Here is my code:

(note: I tried using both 'shm_open()' and 'mmap()', and 'shmget()' and shmat()')

Code:

#include <stdio.h>
#include <stdlib.h>
#include <signal.h>

[code]....

View 10 Replies View Related

Programming :: Shared Memory - Should They Show The Same Address?

Mar 17, 2010

So I'll try to be brief and to the point here: I've got a couple of C / C++ apps that communicate with one another via shared memory. These worked completely fine until.. well, about twenty minutes ago when I finished making some network card changes and suddenly, I've got a weird problem going on. At one point, Parent app waits for Child app to set a boolean indicating it's finished initialization. This worked fine the last time I ran this app up (a few days ago). But right now, the shared flag never seems to get triggered (I've added a printf("Waiting..."); in Parent app until the flag is set). All the code leading up to it being set in Child app seem to be running smoothly, so I tried spitting out the addresses of the shared memory locations. The addresses mapped by Parent app and Child app are different; this seemed odd, so I went back and wrote a simple miniature app that just opened a shared structure on my own box, and I get the same thing - different addresses - but the miniature apps work just fine.

Is it normal for a shared memory space to be mapped to two different addresses across two processes?

If so, does anyone have any idea what might be the issue at hand with my Parent / Child app scenario? The Child creates the shared memory, the Parent has a wait before it opens it, and if it doesn't exist should fail (opening with PROT_READ | PROT_WRITE)... it doesn't fail so it's evidently there.

All of this worked until literally just a few hours ago and I made some changes to my network cards, and I can't even imagine how that could have changed whether or not shared memory mapping worked...

View 2 Replies View Related

OpenSUSE Install :: Kthreads Uses No Cpu Time Or Shared Memory

Aug 13, 2010

When the systen is running there is a program/utility/kernel-driver? kthreadd in system monitor all the following programs are a child process of kthreadd. Is kthreadd part of elevator=cfq and can kthreadd be influenced by params. kthreads uses no cpu time memory or shared memory so it must be in kernel. is there any documentation on this subject? System 11.3 on quad processor 8 gb mem nvidia-card and driver.

View 3 Replies View Related

General :: Changing Maximum Shared Memory Size

Jul 17, 2011

How do I change the size of the available shared memory on Linux?evidently 4GB is not enough for what I am doing (I need to load a lot of data into shared memory - my machine got 8GB of RAM).

View 2 Replies View Related

Programming :: Dereferencing Pointer To A Shared Memory Struct?

Feb 5, 2011

I have what should be a relatively simple program (fadec.c) that maps a struct from an included header file (fadec.h) to a shared memory region, but Im struggling accessing members in the struct from the pointer returned by shmat. Ultimately, I want to access members in the shared memory structure with a globally declared version of the struct, shm__. Not only do I not know how to accomplish that, but I cant even seem to access members of the shared struct directly from the pointer itself (compiler complains about dereferencing pointer to incomplete type). Im at a loss and could use another set of eyes if you guys dont mind taking a gander:

Compile Errors:
tony-pc:/cygdrive/p/test> cc -o fadec fadec.c
fadec.c: In function 'main':
fadec.c:30: error: dereferencing pointer to incomplete type
fadec.c:31: error: dereferencing pointer to incomplete type

[Code]...

View 1 Replies View Related

Ubuntu :: Increase Maximum Amount Of Allowed Shared Memory?

May 17, 2011

My problem is I installed Zone Minder for camera security and I'm testing it on my laptop with the built in webcam and everything seems to work perfectly except when I try to view the live feed from the camera, it's just a black box. No video.

I checked this website and it's exactly the problem I'm having with a fix for it but his fix doesn't work. He says to type:

Code:
user@ubuntu:~$ sudo echo "256000000" > /proc/sys/kernel/shmmax
user@ubuntu:~$ sudo service apache2 restart
user@ubuntu:~$ sudo service zoneminder restart

But when I do the first line, I get this:

Code:
deemar@Clementine:~$ sudo echo "256000000" > /proc/sys/kernel/shmmax
bash: /proc/sys/kernel/shmmax: Permission denied

View 2 Replies View Related

General :: Find Memory Usage Of Shared Library Running In System?

Nov 30, 2010

I need to find the memory usage of a shared library loaded in Linux environment.

I need this information for deciding on whether to make the library part in to application or a seperate application itself.

View 3 Replies View Related

Programming :: Find Out - How To Detach And Delete Shared Memory Segment When Hit Crtl-C

Mar 4, 2011

I have a program that creates and uses a shared memory segment. I am trying to find out how to detach and delete this shared memory segment when I hit crtl-C, and I still need the process to terminate.shmdt() and shmctl() have variables that are local to the main passed to them(shared and shmid)

Code:
//Prototype
void leave(int sig);
//part of code trying to use signal handling
if(signal(SIGINT, leave))

[Code]...

View 3 Replies View Related

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

OpenSUSE Install :: Virtual Memory / Resident Memory Of Server?

Feb 3, 2010

we found that if we use 'top' to show the memory usage of a server (SuSe Linux 10), we can get virtual memory usage as well as 'Resident memory' usage. For virtual mem or a particular process, it is around 1.1GB, which is large but for resident memory, it only consumes 300MB. Are there anyone who knows what the differences are? I would also like to know whether the difference (1.1GB - 300MB) = 800MB are actually available for use by other applications in the system.

View 1 Replies View Related

General :: Wrote A Program That Multiplies 2 Matrices Using Multi-threads And Another One Using Multiple Processes And Shared Memory?

Sep 22, 2010

I wrote a program that multiplies 2 matrices using multi-threads and another one using multiple processes and shared memory. Both in C.I need to find the total memory usage of these programs. I know of the top command, but when my matrices are relatively small they don't even show up on top because they complete so fast, how can I find the memory usage for these instances?Also, how can I find the total turnaround time of my programs

View 1 Replies View Related

Server :: SFTP Memory Error / Getting An Out Of Memory?

Jan 8, 2011

I have been setting up a vps I got out with bhost.net, with CentOS installed. I've been learning and have set up everying I need with the exception of ftp/sftp.

Using yum I installed vsftpd and ran into problems, thinking it was something I might of done I did a fresh install of CentOS and I still recieve the same problem on a fresh install so it is nothing I have done to the server.

The problem is when connecting via a sftp client I get an out of memory error. This error is listed in the putty faq ( url ) under A.7.5, there is a brief explaintion of the cure under A.7.6.

there is mention of a login script but I don't know where this is located. I'm a novice at Linux but by no means incompotent when it comes to computing.

View 5 Replies View Related

Programming :: Shared Memory Address Area In Process Address Space?

Feb 21, 2011

if i attach a shared memory to my process whch part of the address space it will add(like stack, heap, data, code...).

View 3 Replies View Related

Fedora :: Failure Of Creating Shared Memory In Fedora 8

Nov 19, 2009

I am using Fedora 8 in my PC and i'm trying to create a shared memory (below is the sample program) i'm getting error while creating shared memory. Can anyone pl tell what is the possible cause for this.

View 2 Replies View Related

Red Hat / Fedora :: Changes Don't Reflect After Reboot?

Nov 3, 2010

I have installed fedora linux distribution on oracle virtual machine on windows.
The problem am facing is whenever I make changes( as in adding users, configuring web servers, making any kind of changes in files etc.).. and after a while I reboot my machine, I dont see any changes I made.. the changes do not just show up.

what could be the reason behind it and how do I fix it ?

View 2 Replies View Related

Server :: Having A Query Regarding Top And Virtual Memory - VIRT Mem More Than Actual Available VIRT Memory

May 4, 2010

I have a query regarding top & virtual memory. When we run top it show VIRT (Virtual Mem), RES (Resident Mem) & SHR (Shared Memory). The total virtual memory of my machine is 4 GBs (2 GB RAM + 2 GB Swap), but still I am able to see a process showing 4000m virtual memory column. what it means, as its show VIRT Mem more than actual available VIRT memory

View 1 Replies View Related

Hardware :: Can't Even Reflect Screen Across X Or Y Axis?

Jul 9, 2010

My LCD has pivot mode but i don't know how i can use that. I've read manual but I can't even reflect my screen across x or y axis. I've tried also transform option. Nothing worked. In result I've got only massage that i don't understand:

Code:
$ xrandr -x
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 151 (RANDR)
Minor opcode of failed request: 2 (RRSetScreenConfig)
Serial number of failed request: 14

[Code]...

View 2 Replies View Related

OpenSUSE :: OpenOffice File Dialog Does Not Reflect Changes Of New Documents?

Jan 7, 2011

Whenever, I successfully save a new document, the document's icon does not display in the KDE File Dialog until OpenOffice restarts. The document exists, because trying to do a "Save As" on it produces a dialog that states if one wants to overwrite the document. Also, trying to export a PDF twice has the same outcome.

OpenOffice 3.2.1
scim 1.4.7-174.1
KDE 4.4.4
openSUSE 11.3 64-bit

View 1 Replies View Related

Ubuntu Installation :: Changes To Menu.lst Do Not Reflect Correct Partition?

May 19, 2010

I have Ubuntu Lucid, but this problem has been around since Feisty for me. Here's what happens: My menu.lst file has the following line in it:

title Ubuntu 10.04 LTS, kernel 2.6.32-22-generic
root (hd0,2)
kernel /vmlinuz-2.6.32-22-generic root=UUID=de57202b-4cfd-4de3-8b3c-92c2267eb10a ro quiet splash vga=773
initrd /initrd.img-2.6.32-22-generic

Upon any kernel updates, or uninstalling old kernels that I no longer need, the hd(0,2) gets replaced by hd(0,0), which leads to not being able to boot, unless I manually reset the hd(0,0) back to hd(0,2).

View 9 Replies View Related







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