Debian Programming :: Memory Usage When Running Java Program
Jun 28, 2013
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.
View 2 Replies
ADVERTISEMENT
Mar 3, 2009
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.
View 2 Replies
View Related
Jan 17, 2010
Is there a way I can start a program and then record a log of how much memory it's using at a specific interval until the program ends?
I've tried writing a shell script but get the error: ./apps/mem-test.sh: line 4: [: too many arguments
Here's the non-working script:
Code:
$HOME/apps/ImageMagick/bin/convert -limit memory 64 -limit map 128 $HOME/SSI/davidkennardphotography/Img-Orig/95-Pole-Bank.jpg -set option:filter:filter Lanczos -set option:filter:blur 0.8 -resize 1024x720 $HOME/resizedImage.jpg &
GOODY="ps -p $! -o pid,%cpu,rss,cmd | grep convert >>test.txt"
[Code]....
View 3 Replies
View Related
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 3 Replies
View Related
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
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
Jan 11, 2009
i am wondering How to get usage of CPU, Memory in linux environment? So would you able to tell me the ways?
View 10 Replies
View Related
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
Mar 16, 2011
I use a Debian Squeeze system running off a flash drive, i.e. based on a custom Live image running in persistent mode. It runs great and I am grateful for the existence of Debian . However, I have a question. A lot of the machines I use this pen drive on are quite old, often with 512 MB RAM and old processors. I specifically built my system using XFCE and lightweight apps off an initial live image using the standard-x11 package list (basically just Xorg with drivers and the base system). At first things ran very well, blazing fast even on the oldest systems and could comfortably run Firefox along with LibreOffice side by side (I need LO as all of my colleagues use Word docs, often with track changes, which Abiword can't handle properly). However, over time, I've found that memory usage has risen, tot he point where Firefox is now automatically killed on the older systems every time I start LibreOffice.how does one figure out why memory usage is going up? I've checked for inessential services and turned them off with "insserv -r". I've used only lightweight apps, as mentioned before. Are there other general tips on reducing memory usage?
View 4 Replies
View Related
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.
View 3 Replies
View Related
Jul 24, 2010
I have a home server set up with samba, proftp, and the torrentflux webUI via apache and mysql. To the best of my ability, I have stripped the system of any unnecessary software. After a fresh reboot the system uses around 250 mb of memory, which to me still seems like a lot, and after it has been on for a few hours with torrents downloading, the memory usage will steadily climb to and stay at 2 gb! Using top shows that the processes using the most memory are python, mysqld, and apache2. What the heck is going on?
View 1 Replies
View Related
Mar 15, 2010
I was trying to get the status of memory usage and disk usage using sigar in windows and ubuntu. done this in windows by just copying the sigar library into jdk library. But i was unable to do so in ubuntu. I've copied the library to java-6-sun library but still can't run the program.
View 14 Replies
View Related
Mar 18, 2011
I have a computer with 16GB of ram. At the moment, top shows all the RAM is taken, (NOT by cache), but the RAM used by the various processes is very far from 16GB.I have seen this problem several times, but I don't understand what is happening.My only remedy so far has been to reboot the machine.
View 1 Replies
View Related
May 3, 2011
I am looking for free database that has low memory usage and innodb and memory like engins that has C API and support trigger and client/server support for using in embedded linux systems.
View 8 Replies
View Related
Jan 3, 2011
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.
View 9 Replies
View Related
Nov 18, 2008
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:
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
int main()
{
View 11 Replies
View Related
Jun 4, 2011
Is it possible to debug remotely a java program with ddd (data display debugger)?
View 2 Replies
View Related
Aug 12, 2010
I am trying to write a java program and eventually a web app to do the following.1. get the server name, username, password from the user and ssh to the linux box.2. goto a folder, open a script file (the file has different function calls, I need to comment all other function calls and just un-comment the one I want to use)
#call_1
call_2
#call_3
[code]....
View 1 Replies
View Related
Feb 25, 2011
I Want to Develop Network Scanner Software. For that i need "Java Program to Display All IP Addresses in LAN".
View 3 Replies
View Related
May 3, 2011
In gui validation if user enters string in integer requiring field, a dialog box pops out. So on clicking the button i want to stop the program execution and return to the previous jframe(either the same one or newly created object of it).
How can i handle this in java.
I tried calling main(); but it doesn't work.
Also System.exit(0); doensn't work.
View 1 Replies
View Related
Apr 15, 2011
I am trying to run C++ program on linux.
My program consume a lot of memory so that the memory is used up fast and memory swap is very high.
I can find this by "ps" .
My program is long.
I need to find out which part of my program consume so much memory ?
View 1 Replies
View Related
Aug 28, 2009
language: C
OS: linux
I wrote a multithread program(approx 1000 thread have to run) and each thread has to parse a file(for each thread there is one file, ex:thread1 has to parse file1 and thread2 has to parse file2 like this....). I wrote "parse" program as follows. It is working well, if i create 50 threads. but if i run more than 200 thraeds Im getting doublefree corruption as follows:
Code:
*** glibc detected *** ./simulator: double free or corruption (fasttop): 0xb70007b0 ***
And some time I am getting parsing problem and error af follows:
Code:
powersetting.6607:1: parser error : Start tag expected, '<' not found (where powersetting.6607 is file name, when i check this file it is started with '<').
parse program as follows:
Code:
void parse_first(char* filename, int portnum, struct Poweroff *Powerptr1)
{
struct Poweroff *Powerptr;
Powerptr = Powerptr1;
[code]....
View 1 Replies
View Related
Aug 17, 2010
i want to use java as tool in which i give an input,and on the basis of this input my specific script run. for example.... if we talk about web server.. in my java page..i have to just type my web page name...say [URL] and then enter the text...say "hi how are you"
then my script will run... in the script it itself start the service,then edit the configuration file in /etc/httpd/conf/httpd.conf
and make changes according to my input in java page... i know the scripting but i dont know how java command will execute my script...
View 4 Replies
View Related
Feb 25, 2011
i need a program for Encryption and Decryption using RSA algorithm in JAVA ..
View 9 Replies
View Related
Feb 17, 2011
this is my first post and I would like to get some help from you , so what should be the answer for this question ?:::::::::::::the question::::::::::::::::THE UNIVERSITY APARTMENTSThe University Apartments provides apartment rental to university students at affordable rates, with optional facilities:Apartment Type A, 2 bedrooms and equiped with kitchen and laundry facilities. The monthly rental for the rooms in this apartment type is RM300.Apartment Type B, 3 bedrooms includes one master bedroom with attached bathroom but does not have kitchen and laundry facilities. The monthly rental for the rooms in this apartment type is RM200 and students staying in the master bedroom will be paying an additional 40%.
Each apartment may house a maximum of 3 students. Students are required to check out from the apartment unit when the current semester ends.Create an application to manage the university apartments rental:1. Register new student and assign apartment moduleRegister and assigns an apartment to the student for 140 days from the date of registration. The module should retrieve the date automatically from the system clock and calculates the expiry date for the apartment rental. Before an apartment is assigned, the system should allow the selection of the type of apartment (i.e. Type A or B), then check for the number of occupants in the apartment. If the apartment already housed 3 students, it should recommend another apartment unit that is still available. Upon registration, student should pay a RM100 for the utility charges, rental deposit for one month and the rental for the current month.
2. Update apartment status moduleWhen a student moves out from an apartment, the apartment status is updated.3. Reporting moduleGenerates a report of apartments with full occupancy and another report for apartments where rooms are still available. 4. Search module Enable the administrator to search for a student's apartment unit using the student id as the search key. The search result should produce the student�s information and the details of the apartment that the student is staying in.The application should be developed using object-oriented concepts using Student class and Apartment class, implementing the appropriate data fields and methods for the classes. Data may be stored in collections i.e
View 10 Replies
View Related
Oct 5, 2009
I went to the sun website but all I see are upgrades to JDK 6, I dont see where to download the actual JDK.
Anyone know where I can download the JDK for Linux?
View 9 Replies
View Related
Jul 21, 2010
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).
View 1 Replies
View Related
Aug 18, 2010
how can i run a bash script script by using java in rhel5... then please reply....i have vary good project in my mind.....
View 2 Replies
View Related
Feb 20, 2011
I am facing problem of trying to access parameters to be given to shell script within a java prg.
I have following code to run the process within java but the parameter is not recognized within $ or without it also.
Code:
View 13 Replies
View Related
Jan 7, 2010
I have a vector that I do not want to call new on during operation so I use the Capacity Feature to allocate all memory at beginning of program
Code:
struct chartype
{
public:
unsigned char value[MAXCHARTYPE_SIZE];
};
[Code].....
View 2 Replies
View Related