how to print current memory size in my app?
hi,all。 i want know current memory size in my app,for example,i wanna print the heap or stack memory size use in one class or method,how to do it? has some method to get the memory size? ...
hi,all。 i want know current memory size in my app,for example,i wanna print the heap or stack memory size use in one class or method,how to do it? has some method to get the memory size? ...
I have a server application that runs on 64-bit Ubuntu server with 4Gb RAM. When I set JVM (We use Sun JVM 1.6) configuration parameters like this: -Xms1024m -Xmx2560m, I see a strange memory allocation when starting the application (It runs on Tomcat 6). Ubuntu's "top" command shows that the virtual memory size is almost 3,2Gb. I don't ...
I just came across a problem where the constructor of a class needs to allocate memory. So I happily wrote char *mem = static_cast<char*>(malloc(100*sizeof(*mem)));. But then I suddenly realized that in case of error I can't return error code (I am not using exceptions in my code). How can I solve this problem? Should I add an bool init...
I have tried unsuccessfully several times to get programs to remember settings after they've been destroyed. A large reason for that is because I don't have an example code to work off of. Below I have a simple program I wrote. I'd like it so that it both remembers the position of the scale, and the contents of the text widget upon resta...
Hello, I would like to ask about the memory management problems in objective C. I am the green of the objective C. When I read some of the sample program from the Apple website, I saw a [XXX release]. I guess this statement is used to release the use of the variable. However, when I use this statement in my program, I got some problems...
In my iPad app I am creating a root view that contains a lot of images that are used as thumbnails. Clicking a thumbnail presents a new window displaying details about said item, along with an enlarged thumbnail. From here it allows the user to open the item, or use aMFMailComposeViewController to create some files and export them. If t...
I deployed a web application on a server. I created a script in order to perform load on the application(stress test). The stress generated different requests using 10 threads. I arrived into the following status as shown in the manager of tomcat: Free memory: 34.57 MB Total memory: 1166.43 MB Max memory: 1166.43 MB Max threads: 200 Cu...
We have a small text box with 512Mb of ram. We wanted to see how many threads we can create in Java in this box. To our surprise, we can't create many. Essentially the minimum stack size you can set with -Xss is 64k. Simple math will tell you that 64*7000 will consume 430Mb so we were only able to get it up to around 7000 threads or so a...
I'm trying to do a PCA on my data using princomp(x) that has been standardized. The data is <16 x 1036800 double>. This runs our of memory which is too be expected except for the fact that this is a new computer, the computer holds 24GB of RAM for data mining. MATLAB even lists the 24GB available on a memory check. Is MATLAB actually run...
I am writing an Excel File using Apache POI. I want to write in it all the data of myResultSet which has the fieldnames(columns) stored in the String[] fieldnames. I have 70000 rows and 27 columns My Code: String xlsFilename = "myXLSX.xlsx"; org.apache.poi.ss.usermodel.Workbook myWorkbook = new XSSFWorkbook(); org.apache.poi.ss.user...
Our team is building an RCP application using PostgreSQL for DB. We are evaluating the usage of Hibernate. Our project has the following constraints : 1) The project is a small extract-and-run-in-any-system type RCP application which is mostly used by non-technical users with a minimum setup needed. The application should have a low mem...
my weblogic 8.1 gives out of memory if i dont click the garbage collector for a long time, i have increased the -Xms512m -Xmx1024m and also the max perm size in setdomainenv.bat, is there any other way also which i have missed i have a 4 GB (3.2 read) system ...
Hi, the semester is over so I sank a bit into assembly again. I have read some articles and parts of x86 family user's manual concerning the memory map and I/Os and I still haven't figured out how does it work.. As I understand it now, I can access the I/Os with IN and OUT instructions, in that case is it like the port number I use as a...
I need a way to find if the character ('<') has hit a wall (Black pixel Graphic) -On a ZX81 game. I'm been looking at another game... which uses code if peek(peek 16398 +256*peek 16399) = code "**blackpixel graphic**" then ... Which seems to work for them... Is this correct code? I'm not really knowledgable with addresses and gett...
Hi I have a HorizontalScrollView that has lots of views and images inside it. The issue is that if I have lots of stuff inside it I will get a 'java.lang.OutOfMemoryError: bitmap size exceeds VM budget' is there any way to use some kind of cache, or add/remove stuff as I move left/right so its not on memory all the time? Thanks ...
I was reading http://duartes.org/gustavo/blog/post/motherboard-chipsets-memory-map and in specific, the following section: In a motherboard the CPU’s gateway to the world is the front-side bus connecting it to the northbridge. Whenever the CPU needs to read or write memory it does so via this bus. It uses some pins to trans...
I have spent hours trying to get my project working and I just can't get it working. Basically, I'm trying to use NSUserDefaults to save a custom object when the user hits a save button and load all the data up when the app loads. If there is no previous NSUserDefault saved, I want to set some defaults. In the end, I am getting EXC_BA...
I'm writing a Perl CGI script right now but it's becoming a resource hog and it keeps getting killed by my web host because I keep hitting my process memory limit. I was wondering if there is a way I can split the script I have into multiple scripts and then have the first script call the next script then exit so the entire script isn't...
Hi all, I've some memory issues with a view controller that contains a text field. Brief summary: Clicking on a button my application modally presents a UIViewController (that I will call "VC1"). From VC1 the user can optionally open (using pushViewController) a UITableViewController ("VC2") and turn back. From VC1 the user can optional...
I have been developing a small Java utility that uses two frameworks: Encog and Jetty to provide neural network functionality for a website. The code is 'finished' in that it does everything it needs to do, but I have some problems with memory usage. When running on my development machine the memory usage seems to fluctuate between abou...