Geeks Talk

Prepare for your Next Interview




Running garbage values before compling

This is a discussion on Running garbage values before compling within the Java forums, part of the Software Development category; Can we run garbage values before compling a program? When the memory needed to excute a particular program is not sufficient then can we make it up to run properly ...


Go Back   Geeks Talk > Software Development > Java

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-28-2007
Expert Member
 
Join Date: Oct 2006
Posts: 690
Thanks: 0
Thanked 49 Times in 41 Posts
JobHelper is on a distinguished road
Running garbage values before compling

Can we run garbage values before compling a program? When the memory needed to excute a particular program is not sufficient then can we make it up to run properly by excuting garbage value before the program compiles? What is the command used if at all?

NOTE : [This question was asked by neetha]
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-21-2007
Junior Member
 
Join Date: Feb 2007
Location: Banglore
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
vardhan59 is on a distinguished road
Re: Running garbage values before compling

Hi
for running garbage collector
system.gc(); method is there.

regards,
vardhan.
Reply With Quote
  #3 (permalink)  
Old 02-21-2007
Junior Member
 
Join Date: Feb 2007
Location: Conway, AR, USA
Posts: 23
Thanks: 0
Thanked 4 Times in 3 Posts
rachilc is on a distinguished road
Re: Running garbage values before compling

System.gc() helps the programmer suggest that the collecter run. The compiler may run it or may not.

Basically java specifications do not require the collecter to run on System.gc(). You cannot force garbage collecter to run, only recommend it run.

So if your app is very memory intensive, I would suggest not to depend on grabge collecter. Unfortunately, without knowing more about your specific settings I can't suggest any alternative either. Can you specify more details about your problem
Reply With Quote
Reply

  Geeks Talk > Software Development > Java


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Running QTP from command line sanitha QTP 1 06-05-2007 04:34 PM
remove duplicate values in a source using Informatica JobHelper Data Warehousing 4 02-03-2007 04:13 AM
Picklist values are coming from S_LST_VAL table JobHelper Seibel 3 01-13-2007 03:10 AM
The workflow is running forever JobHelper Data Warehousing 0 01-10-2007 05:14 AM
Compare values of column in a table JobHelper SQL Server 1 12-13-2006 01:57 AM


All times are GMT -4. The time now is 01:13 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved