Ubuntu :: System Freezes On Running Pearl Program - Out Of Memory
Sep 1, 2011
I am trying to run a simple perl program that requires getting stock price data from yahoo for just 1 ticker symbol, and it was running fine till this morning, wherein it froze and displayed the message: Out of memory!
I cleared my cache by running the following:
Code:
$sync
$sudo echo 1 |sudo tee /proc/sys/vm/drop_caches
$sudo echo 2 |sudo tee /proc/sys/vm/drop_caches
$sudo echo 3 |sudo tee /proc/sys/vm/drop_caches
but it hasn't helped.
Even Firefox has been freezing, so I basically cannot do anything on my computer.
I'm trying to edit mobi files. To do so, I looked for a mobi2html program, which I found here:URL...I followed all the instructions mentioned in the READ_ME file that comes with the zipped source. I strongly believe, as no error messages appeared during the installation, everything went according to plan.My question is simple: having completed all the installation procedures, what should I do next? My general procedure is to look up for the new program name in the "applications" tab, but I know that won't always do the trick.
Is there something similar to the windows TSR thing in Linux? (terminate & stay resident)
The reason I ask is that after replacing my HD and reinstalling Maverick I've noticed the PC freezing up afew times. It seems that memory gets used up and then doesnt free up after the application is closed. The last couple of times this happened today I was doing
1. Copying a number of photos from my flash drive to the HD
2. Burnt a disk with Brasero.
After doing this it froze and I had to crash the system and reboot. I don't remeber this happening before.
Apart from this memory problem it's working OK I think. My system specs are below
I would like to know if there is a linux command to verify the amount of memory used by a program. The programs I am using were compiled with gfortran.
I have a java program that runs on Debian as a background processor. Yesterday the Java program stopped running. I looked at the memory usage, the system only had 5MB memory left, so my guess is that the java program ran out of memory to use.
However, after we restarted the java program, we could see that the free memory count started to go up. It kept going up from 5MB to over 400MB. The increase of memory happened slowly, when I measured it, I could see that with each minute passing by, there were a bit more memory added into the free memory pool, and meanwhile, the java background process was running.
I wonder why this would ever happen. It's as if our java program first brought the machine done because it consumed all the memories, then after restart, it starts to give back memories.
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?
I have a system with 1 GB RAM. I'm running KDE 4. I created a tab to look that the Physical Memory in the System Monitor program, which I assume appears to look at the same stats that "top" looks at. In that Physical Memory tab I have 3 tables: Used Memory, Free Memory, and Application Memory.The Used Memory table shows that the system is using .94 of .98 GiBytes. The Free Memory table shows that the system has .5 GiBytes of RAM free.
However the Application Memory shows that only 339 M-Bytes of RAM is being used.Note that "top" shows the same info.So where is the other .6 GiBytes of RAM that the Used Memory table shows as being used?If I look at the process table which is supposed to encompass all of the processes running, including the ones for the OS, then it appears to add up to the 339 M-Bytes being used in the Application Memory table. Is the rest of the memory being held in reserve by the OS to be used as needed? If so, then why when another application is opened the Free Memory goes down instead of staying constant?I also noticed this memory "black hole" when I was running 11.0 on a system with 4 GB of RAM. The OS appeared to "take up" a large chunk of memory that was NOT being used by any applications and making it "disappear" - meaning that the applications were using about 1.3 GiBytes of RAM and Free Memory was showing only .7 GiBytes instead of the over 2 GB of RAM that should be free.
I need to monitor the amount of free physical memory on Linux from within a large C program. The sampling will occur very frequently, so the measurement cannot be performance intensive. The fact that Linux uses much of the theoretically free memory for cache and buffers means that just measuring the free pages is not sufficient. Using free + cache + buffers gives an overestimate as not all cache/buffers can be freed, but I could get a rough idea of how much generally can't and subtract that from the answer.
Possible options that I've come across so far are: Parsing /proc/meminfo - but that involves reading from file which is slow. Extracting the free, cache and buffers values from the output of the Free command - but is there a quick way to do this? Parsing the /proc/freemem file produced by the API here - but this is again reading from file. Is there a way to get that output directly? Speed is an extremely high priority, and the answer it must accurately represent the amount of memory that my program could expand into (to within a few Mb).
So i just finally installed Debian Jessie OS, replacing Ubuntu. But now it is running extremely slow. It's not internet connection. The internet speed is running fine (Videos load quickly), but it's like the system freezes every 30 seconds or so. A video can be fully loaded but still stops and starts constantly. Just browsing the internet, or non-internet things do the same also. I switched back to Ubuntu to see if it was different on there, but Ubuntu is running fine.
I'm running Ubuntu 10.10 and I'm running Skype 2.1 (Beta). Whenever I "x" out of the Skype program, from what I can tell it's minimizing the Skype program and not actually terminating the thread (just as it does in Windows), however when I "x" out of Skype the icon is not showing up in the system tray (but it does in Windows). So one would think that it's not running, however if I try to re-launch Skype I get an error message stating: Another Skype Instance May Exist.
I confirm this by going to System > Administration > System Monitor and sure enough, Skype is running. So if I "x" out of the program, how do I switch back to it because it's not showing up in the system tray? One last thing : Alt+Tab does not work. It will list the other programs running, but not Skype, despite the fact that it is running.
I have an HP dx5150 with Ubuntu 11.04. I recently added 2 new memory chips (total 4) with the same specifications as the originals. The memory is recognized by the BIOS and Memtest returns no errors. The computer boots normally and functions normally for an hour or so, and then freezes. When it freezes it does not accept any input and the screen gets displays a bunch of small green or purple lines. Here is the output from lshw:
Using 10.04 Netbook version. I am finding on my Asus EEE 901 that sometimes file copy just seems to freeze - seems to happen usually when copying from the built-in SSD memory to the plug-in SDHC memory card. I have tried reformatting the card and using a different card. It is not just this computer since I found the same thing on my last Asus which was the 900 model.
I am told that there are issues with Nautilus. Is there anything which can be done to improve this or is there anything else which I can install besides Nautilus? I am assuming that there is some issue related to Ubuntu's handling of SDHC memory cards.
It is becoming annoying because it seems to work sometimes and then not. When it happens only option seems to be to turn the netbook off and on again. Even if the file copy is cancelled the card seems to be unaccesible until rebooted.
Also after a certain point it seems that when I try and copy new files to the card, they appear to copy ok but obviously are corrupt in some way - when you try to play videos for instance they are faulty.
i just recently got a new blackberry pearl 8230 smartphone thingy and iv been trying to find out how to load music onto it and i cant seem to do it, the disk it came with is for windows and i tried running the program through wine and it wouldn't work, so i was wondering how would i go about obtaining the programs to do this if there are any out there?
I am running BWA (burrow-wheeler alignment) and, keep getting an error that there isn't enough memory allocated. How do I change the memory allocation? I'm working on a good quality desktop only a little over a year old, so having the memory shouldn't be the problem.
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.
Is there a system admin tool for RHEL on montioring and logging system memory used and released that can dump to a log file?I'm having an issue with memory not being released when an application is closed. I need to have a tool monitor and log so I can troubleshoot to verify that it's an application not the OS.
I'm running a java program and to debug the program instead of using a debugger I would like to look to the heap and to the bytes in the memory of the process. I was hoping that the pointers would give me a snapshot of a moment of the application. It exists a program that allow us to look to the details of a process and to the memory ram?
I went to an interview last week and there was this guy who asked a simple question that i have been trying to solve for a couple of days. I tried google but i just cant get the search keywords right. The result were just useless. Well, the question is : "How can we allocate a limited memory to a process before we start its execution" well, the question is related to an X11 system so may be some flags must be set to limit its memory.
I wrote a program in lcc in windows and I have to write it in gcc in unix. In lcc there was an option to use more memory than the default for the stack. The following code is working in lcc but in gcc it gives segmentation fault:
When I try to download software on playonlinux the program just freezes, and the screen glazes over. The program I am trying to download is internet explorer 7. I have wine. Do I have to have the files already on the computer, or is playonlinux supposed to download them.
Happens on Jessie AMD64 with mate, I can't go to a tty to kill mate system monitor, mouse stop working, keyboard stop working. I tried changing the theme, and now it freeze opening mate system monitor.
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?
A few years back when I was running Linux most of the time I used a program that gave me information on my machine.
It had different themes and such, and it would usually rest vertically along the side of the desktop. It would tell one information on drives, space, memory, I think you could even have it tell you the weather if you entered geographical information.
I know I'm being a bit vague but that's all I can remember, does anyone recall this program? It was pretty popular back then...so I wonder if it's still under development.