Is it possible to disable the garbage collector?
I was just wondering if it's possible to disable the garbage collector... Thank you.
Try running with the -Xnoclassgc parameter.
http://java.sun.com/developer/JDCTechTips/2004/tt0420.html#2
Similar Messages
-
Is it possible to disable the 'edit layout' link on the record detail page
Is it possible to disable the 'edit layout' link on the record detail page? Not the homepages, I know there is a switch for that, but I thought there was one for the detail pages?
I want to disable this as I dont want users saving their own layouts, they must stick to the related sections defined in the default layout. The problem is that if they are to have access to certain related lists when an opportunity is of a certain type but NOT other types. If they have saved the layout (using the 'Edit Layout' link), and change the record type, they will see related sections that have been set to 'Not available' in the default layout (ie step 4) for that 'type'.Robbo, at this time it not possible to disable the Edit Layout on the record detail page.
-
Is it possible to disable the screen saver for a certain app?
Is it possible to disable the screen saver just while a certain application is running?
The app seems to crash when the screen saver comes on.
Just so you know, application I'm using is Hogwasher; a newsgroup reader.Not really. Just disable it manually when you run that application. Then, send off a bug report to the app's developer and tell him to update it for the latest Tiger. Alternatively, use another newsgroup reader.
-
Is it possible to disable the OAWebBeanConstants.IGNORE_MESSAGES
greetings all .... is it possible to disable the OAWebBeanConstants.IGNORE_MESSAGES . i have this ....................
{ OAMessageTextInputBean bi = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("BI") ;
System.out.println("BI"+bi.getValue(pageContext));
if ((bi.getValue(pageContext)) != null)
{ pageContext.setForwardURLToCurrentPage(//"OA.jsp?page=/oracle/apps/ap/MainPG",
null,
false, // Retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
OAWebBeanConstants.IGNORE_MESSAGES);
System.out.println( "PM");
OAApplicationModule am = (OAApplicationModule)pageContext.getApplicationModule(webBean);
String paramPR = prnum2;
Serializable paramPRParamList[] = { paramPR};
am.invokeMethod("paidManuallyUpdate", paramPRParamList);
System.out.println( " THE VALUE OF THE Cancel RB IS " + canx.getValue(pageContext));
prnum1.setValue(pageContext, "");
pReason1.setValue(pageContext , "");
//either one of these confirmations will work . i use one or the other
throw new OAException("Payment Has Been Updated To Paid Manually", OAException.CONFIRMATION);
//or
OAException msg = new OAException("Updated To Paid Manually", OAException.CONFIRMATION);
pageContext.putDialogMessage(msg);
the problem is if i include the setForwardURL my confirm messages dont work. if i dont include the setForward they work.
is there a way to do the setForwars so i can redirect the page and make the table inactive and also use the confimations. i can see its going past my system.prints. it just isnt popping up my confirmations as i believe its due to the IGNORE_MESSAGES.
any insight ....
cheers.Hi,
SetForward*()...It lets the current page processing complete. Your following code will complete its processing, after that it will be forwarded to next page.
ForwardImmediately.... Forwards immediately without letting remaining code process.
However, a good thing is pageContext of the same page is forwarded. That means, if you did pageContext.putDialog(message), in current page, that will be forwarded in both the cases to next page. Hence, for your problem...
use putDialog method, as stated in previous post and
use forward url as CONFIRMATION, NOT AS ERROR OR IGNORE_MESSAGE.
pageContext.setForwardURLToCurrentPage(//"OA.jsp?page=/oracle/apps/ap/MainPG",
null,
false, // Retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
OAException.CONFIRMATION); //WHAT YOU HAVE PUT IN DIALOGS AND WANT TO SHOW IS CONFIRMATION.
Please try this.
Abdul Wahid -
Is it possible to disable the optimized compiler in LabVIEW 2010
Hello,
I have a project that take 3 minutes in LabVIEW 8.6 to build and now with LabVIEW 2010 it take 10.5 minutes. 3x more longer.
In fact my project as 61 .lvproj for a total of 4300 vi's that take 1 hour to build. If I interpolate, the entire build process will take 3 hours in LabVIEW 2010. This is not acceptable
I know that the new compiler optimize the code for better performance, but if I don't need better performance.
Is it possible to disable the optimized compiler in LabVIEW 2010 with an INI key in LabVIEW.ini.
Dany Allard
Dany Allard
Solved!
Go to Solution.Jarrod S. wrote:
One Application Builder setting you might try out to make builds go much more quickly is the Remove Unused Members of Project Libraries checkbox and the Modify Project Library File after Removi....
This can drastically cut down the build times. Note, however, that this option does not work well if your application will load external plug-in VIs when it runs, because the libraries of those plug-in VIs may conflict with the modified libraries in the executable file. If you don't have a plug-in architecture, this will not affect you.
The "Remove unused members of project libraries" was already selected but not the "Modify project library file after removing unused members" and selecting this cut the build time from 10.5 min to 4 min.
Thank you Jarrod for this tips
Dany
Dany Allard -
How to get the garbage collector to work?
Hi,
i have i program where i load an image scale it down and save the scaled version in an array. I do this for a whole directory of images.
After every image i set the temporary variable for the loaded image = null and call the function System.gc().
My problem is, that the garbage collector does�nt give the memory of the loaded image free and the used memory of my program grows with every loaded image.
/* Reads all images from a folder an stores them in an Array of images */
public static BufferedImage[] readScaledImagesFromFolder(String folder,
int maxSize) {
File dir = new File(folder); /* Open the Folder */
String[] children = dir.list(); /* Get the children of the folder */
if (children == null) {
// Either dir does not exist or is not a directory
System.out.println("No images in the folder!");
return null;
} else {
/* Init array for images */
BufferedImage[] images = new BufferedImage[children.length];
int i = 0;
int index = 0;
BufferedImage temp;
String filename, fileending;
for (i=0; i<children.length; i++) {
// Get filename of file or directory
filename = children;
/* Get the fileending of the file */
fileending = filename.toLowerCase().substring(filename.length()-4);
if(fileending.equals(".jpg") || fileending.equals(".bmp")
|| fileending.equals(".png") || fileending.equals(".gif"))
/* Read the image */
temp = util.ImageUtils.loadBufferedImage(folder+"/"+filename);
/* Scale the image down and save it in an array */
images[index] = Util.getScaledImage(temp,maxSize);
index++;
temp = null;
System.gc();
Mosaic.sourceImageNum = index;
System.out.println((index+1)+" resized pictures loaded from folder: "+folder);
return images;
How can i get the gargabe collector to work after every iteration?
I tried to let the Thread.sleep(10) after System.gc() but it does�nt help.
Thank you every much
JackNeilHm yes.. i now that System.gc() is only a
suggestion.
But i know what my program is doing and that it
does�nt need the temporary image anymore after i have
a scaled down version. And the temporay image will become unreachable as soon as reading the next one overwrites your temp variable. Setting the variable to null doesn't have much effect.
It would be smarter to load the new image over the
old temporary image and not to expand the heapsize to
maximum.Then look at the possibitly of loading the next image into the same bufferedimage. -
How intelligent is the garbage collector?
Hi all,
I've got a question about how garbage collection works in an ABAP objects context.
If there are no more references an object is cleaned up and the memory released. Fine.
What about an object O1, which in turn creates another object O2. O2 however also contains a refernce to O1.
When the original process completes, this leaves two objects that reference each other, but with no other contact to the 'outside world'. Is the garbage collector intelligent enough to dump them?
Any input appreciated,
Cheers
MikeHi,
Thanks for the feedback. I am still not sure - you say 'when the program ends it's part'. This is exactly the point - when the program ends, do the objects remain because they still contain references to each other?
More detail:
The references are public instance attributes of both objects (different classes). I would prefer to use functional methods, but am stuck with public attributes which I'm populating in the constructor.
So a process P declares a local var LV_O1 and does a CREATE OBJECT LV_O1.
In the constructor of O1, it does a
CREATE OBJECT me->ATTR_O2 to populate it's attribute with a reference to an instance of O2.
O2 doesn't need to do a CREATE OBJECT, but assigns a ref to O1 to it's attribute ATTR_O1.
So now O1 and O2 refer to each other by public attributes:
O1->ATTR_O2 and O2->ATTR_O1.
The big question is what happens when process P ends and it's variable LV_O1 ceases to exist?
In case anyone's wondering about the overall wisdom of the design, they have to be public attributes (used in Workflow) and they have to refer to each other as instantiation may also happen the other way around.
Cheers
Mike -
I want the computer to keep a history of all the site they have searched, but can not know for sure if they turn on/off the private browsing function. Is it possible to disable the private browsing function and put a lock / password on it ?
Thanks,
DavidEven if it was possible to remove or disable "Private Browsing" then that still won't make it impossible to delete private data like visited websites (history) or cache or cookies.<br />
There are a lot of ways to clear such data, either via [[Clear Recent History]] or directly by deleting the History in the Library or sidebar.<br />
Private Browsing makes it easier because all data is kept in memory and nothing is saved to disk, so nothing needs to be removed.<br />
<br />
If you want to see which sites have been visited then you should look at others means outside Firefox like a router or firewall with a password protected logging feature that can't be bypassed or a program like Wireshark.
* http://www.wireshark.org/download.html
* http://en.wikipedia.org/wiki/Wireshark
See also:
* http://kb.mozillazine.org/Parental_controls -
is it possible to disable the camera on a nano 2nd generation? My grandaughter is in boarding school, and they do not allow any form of camera.
Specs for iPod nano 2nd gen > http://manuals.info.apple.com/en_US/iPod_nano_2nd_Gen_Features_Guide.pdf
No camera. -
Is it possible to disable the play button when exporting to exe or app files?
Is it possible to disable the play button when exporting to exe or app files? Can the app just boot up without the playbutton?
Are you talking about auto play option or the play button on Playbar?
I just checked the EXE ran fine without requiring any play button to start as per my settings.
Is this waht you are looking to achieve?
Thanks,
Anjaneai -
Swing components and the garbage collector
How much care does one need to take with swing components, with reference to running out of stack space? I ask because I'm writing a system for an automotive parts company, and the company tends to not reboot the machines very often...
Anyway... if a JFrame is closed, is it and all its components marked for GCing? Do I need to call the dispose method, or is this part of the default close behaviour? Or is there something else entirely?
CheersIn class that calls for .setVisible(false) of one JFrame u MUST call
for dispose() method.
so
myFrame.setVisible(false)
myFrame.dispose()
myFrame = null // to help the garbage collector
If u have classes that becames from JFrame (or JDialog) u can
invoke in its constructors:
this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE)
This makes uncecessary to call for dispose() method explicetly.
If u do not have this kind of classes u can invoke this method
after u have create your JFrame
JFrame myFrame = new JFrame();
myFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE)
The most important thing is REMOVE ALL LISETNERS that u have added, so, if u have classes that becames from JFrame u can ovverride
the dispose method to do that
eg
public void dispose()
super.dispose()
removeActionListener(.....)
and so on
If u do not have this kind of classes u must remove all listeners u have
added before u invoke the setVisible(false) method.
Regards -
Is it possible to disable the trackpad when a wireless or usb mouse is present? With Lion 10.7.2, I can not find the checkbox that was there before I installed Lion. Is the option gone on Lion?
There is no BIOS in OS X. There is only the EFI stored in ROM that is not user modifiable. OS X is probably checking Bay 0 for the boot drive since that is where it should be. It won't check the Tempo drive since it is treated like an external drive. I suggest you open Startup Disk preferences to see if the Tempo device is selected as the boot device. If it isn't, then select it. That will probably shave off a few seconds in the startup time.
-
Is it possible to disable the auto dim function, so that the clock can be displayed all the time?
At this time it is not possible. Sorry.
Being able to do so would dramatically decrease your iPod's battery life between charges.
B-rock -
If my iPhone is stolen and the thief shut the phone down, I wouldn't be able to locate it anymore.
Is it possible to disable the possibility to shut down the phone when a passcode lock is set up?
enable prohibition shutdown option, with out a jail break tweek
Apple should think about this, if not already in the new IOS 7No.
The battery will run out sooner or later anyway, even if you could prevent shutdown.
iOS 7 includes a feature that prevents anyone wiping and then re-setting up the phone without your AppleID and password. -
TS2755 Is it possible to disable the Messages App
Is it possible to disable the Messages App all together through profiles or a Management tool on an iPad in an enterprise situation?
Currently we are having issues with this App in a work place and want to disable it all together. I've looked through the iPhone Configuration Utility and there doesn't seem to be any option for this. Anyone got any advice?Hi suyog83,
Have you tried using Apple Configurator instead of IPCU?
https://itunes.apple.com/us/app/apple-configurator/id434433123?mt=12
You can disable iMessages and Game Center by creating a restrictions configuration profile for "supervised" iOS 6 devices using Apple Configurator. Here's more on how to use Apple Configurator:
http://help.apple.com/configurator/mac/1.0/
Hope this helps!
~Joe
Maybe you are looking for
-
Wondering if using the Apple ID finger print on the ipad, is there a way to set it up so that parents can set their fingers to be the only ones able to purchase from app store and itunes, but still able to recognise the kids fingerprints to turn on t
-
Advance payment in Purchase order
HI Team, we are processing supplier advance payment in PO through ME2DP. while processing advance payment, system is calculating advance payment on base value. we need this on base value and taxes. how we can do this. regards k
-
SSIS - Exporting Data into flat files from Oracle Table as batchwise process
Hi All, Thanks in advance. I have a Large Table in Oracle Database with some 3 Lakhs record. I need to fetch the 10,000 records for every iteration and export it into the flat file. This process should occur recursively until the table becomes empty.
-
Cert issue with Java 1.7 vs Java 1.6?
As part of our Java Update process, I've been updating the Java version that our ColdFusion servers (9.0.1 Cumulative Hotfix 4) use from Java 1.6_xx to 1.7_17. Overall, no issues, except- when trying to connect to a couple of internal servers via cfh
-
Script to change fill color based on excel data?
Hi. I'm curious if there is a way to change the fill color of, say a rectangle, in Illustrator based on data in an excel spreadsheet (csv or whatever). For example: say the data in the excel cell is 1 and that corresponds to the rectangle in Illust