Related methods and the garbage collection
HelloIn the example, you can see that I create an instance of TestClass. In the constructor of
TestClass I set the property to "f". As you can see there is no reference to the XClass
instance, but is made of "foo" is extracted from the XClass instance and is stored in the 'f '.
property.
The question:
The garbage collector deletes the instance memory XClass?
I think that he cannot remove it because the bound method (which is store in 'f') refers to her (it).
(But if I put the 'f' null the garbage collector property will remove it.)
Can you confirm?
Thank you
LACITO
The example:
class XClass
{
function foo (): void / / method defined, related
{
...
}
}
class TestClass
{
protected var f: Function = null;
public void TestClass()
{
f = new XClass (*.foo ());
}
}
...
var myTest:TestClass = new TestClass();
...
The answer lies in the following topic:
http://tech.groups.Yahoo.com/group/flexcoders/message/82709
Thank you, Gordon.
Tags: Flex
Similar Questions
-
I bought a license for cs 6 standard, I have the serial number and the previous collection of 1 to 5. I need to reinstall the program. I would like to know were your site I should go to re - install the program?
You can download CS6 on the following link...
CS6 - http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
Download and Installation Help-
-
I can't delete / unload the example swf files external when the carousel.swf (portfolio) appears and press the button about the content overlaps the carousel (portfolio). How can I delete / unload an external swf file in the main flash file and load a SWF, so that at the same time remove garbage collection memory operation?
This is the error messages I receive: "TypeError: Error #2007: child parameter must be non null.»
at flash.display::DisplayObjectContainer/removeChild()
" to index_fla::MainTimeline/Down3().
Import nl.demonsters.debugger.MonsterDebugger;
var d: MonsterDebugger = new MonsterDebugger (this);
stage.scaleMode = StageScaleMode.NO_SCALE;
internship. Align = StageAlign.TOP_LEFT;
stage.addEventListener (Event.RESIZE, resizeHandler);
is the charger for the portfolio page swf
var loader: Loader;
var loader2:Loader;
var loader3:Loader;
var loader1:Loader;
resize the content
function resizeHandler(event:Event):void {}
resizes the portfolio page to Center
Loader.x = (stage.stageWidth - loader.width) *. 5;
Loader.y = (stage.stageHeight - loader.height) *. 5;
resizes on page to Center
loader3.x = (stage.stageWidth - 482) *.5 - 260;
loader3.y = (stage.stageHeight - 492) *.5 - 140;
* loader2.x = (stage.stageWidth - 658.65) *. 5;
loader2.y = (stage.stageHeight - 551.45) *. 5; * /
}
addEventListener (Event.ENTER_FRAME, onEnterFrame, false, 0, true);
function onEnterFrame(ev:Event):void {}
var requesterb:URLRequest = new URLRequest ("carouselLoader.swf");
Charger = null;
loader = new Loader();
Loader.Name = "carousel1.
Adds gallery.swf in the scene at the beginning of the film
loader.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {}
trace (Event);
}
try {}
Loader.Load (requesterb);
} catch (SecurityError: error) {}
trace (Error);
}
addChild (loader);
Loader.x = (stage.stageWidth - 739) *. 5;
Loader.y = (stage.stageHeight - 500) *. 5;
stopover gallery.swf duplication and more on enter frame
removeEventListener (Event.ENTER_FRAME, onEnterFrame);
}
PORTFOLIO BUTTON
Add eventlistner so that gallery.swf can be loaded
MovieClip (root),.nav.portfolio.addEventListener (MouseEvent.MOUSE_DOWN, down, false, 0, true);
function Down(event:MouseEvent):void {}
Re add listener for contact.swf and about.swf
MovieClip (root).nav.info.addEventListener (MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
MovieClip (root).nav.about.addEventListener (MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
discharge of entry gallery.swf frame if users press portfolio in nav button
var applicant: URLRequest = new URLRequest ("carouselLoader.swf");
Charger = null;
loader = new Loader();
Loader.Name = "carousel."
loader.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {}
trace (Event);
}
try {}
Loader.Load (requester);
} catch (SecurityError: error) {}
trace (Error);
}
addChild (loader);
Loader.x = (stage.stageWidth - 739) *. 5;
Loader.y = (stage.stageHeight - 500) *. 5;
removeChild (getChildByName ("about"));
removeChild (getChildByName ("carousel1"));
delete eventlistner and prevents duplication of the gallery.swf
MovieClip (root).nav.portfolio.removeEventListener (MouseEvent.MOUSE_DOWN, down);
}
INFORMATION BUTTON
Add eventlistner so that info.swf can be loaded
MovieClip (root).nav.info.addEventListener (MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
function Down1(event:MouseEvent):void {}
This adds the EventListener for portfolio so that the end user can re-post if they wish.
MovieClip (root),.nav.portfolio.addEventListener (MouseEvent.MOUSE_DOWN, down, false, 0, true);
MovieClip (root).nav.about.addEventListener (MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
var applicant: URLRequest = new URLRequest ("contactLoader.swf");
loader2 = null;
loader2 = new Loader();
loader2. Name = "contact".
loader2.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {}
trace (Event);
}
try {}
loader2. Load (requester);
} catch (SecurityError: error) {}
trace (Error);
}
addChild (loader2);
loader2.x = (stage.stageWidth - 658.65) *. 5;
loader2.y = (stage.stageHeight - 551.45) *. 5;
delete eventlistner and prevents duplication of the info.swf
MovieClip (root).nav.info.removeEventListener (MouseEvent.MOUSE_DOWN, Down1);
}
ON THE BUTTON
Add eventlistner so that info.swf can be loaded
MovieClip (root).nav.about.addEventListener (MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
function Down3(event:MouseEvent):void {}
This adds the EventListener for portfolio so that the end user can re-post if they wish.
MovieClip (root),.nav.portfolio.addEventListener (MouseEvent.MOUSE_DOWN, down, false, 0, true);
MovieClip (root).nav.info.addEventListener (MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
var applicant: URLRequest = new URLRequest ("aboutLoader.swf");
loader3 = null;
loader3 = new Loader();
loader3. Name = "a connection"
loader3.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {}
trace (Event);
}
try {}
loader3. Load (requester);
} catch (SecurityError: error) {}
trace (Error);
}
addChild (loader3);
loader3.x = (stage.stageWidth - 482) *.5 - 260;
loader3.y = (stage.stageHeight - 492) *.5 - 140;
removeChild (getChildByName ("carousel"));
removeChild (getChildByName ("carousel1"));
delete eventlistner and prevents duplication of the info.swf
MovieClip (root).nav.about.removeEventListener (MouseEvent.MOUSE_DOWN, Down3);
}
Stop();
You call unload() on objects that you cancelled - where the error.
You should do something like:
{if (loader2)}
loader2. Unload();
}
As for the null value passed into the function - null is a default value. In this way, you can call the low past nothing:
Down()
Or you can use it as a handler in which case it will be called by the Auditor:
Down (mouseEventInstnace);
-
Restarting the device on the garbage collection
Hello
I created an application that performs the following operations:
- Read an email address of a BasicEditField that an end user will be input.
- Convert this string to an object of net.rim.blackberry.api.mail.Address
- Persist the object address by doing a commit sync
- Read the persistent object even to intervals and use it to send email.
I am able to record the e-mail to the PersistentStore address. When I get out my app running (for sending electronic mail timed) so the device restarts. After a reboot, the device remains stable and emails come out because they are supposed to.
I am now able to reproduce this exact behavior if I first enter the e-mail address, it persists and call a GC (garbage collection). As soon as I do this, the device restarts. As a tip, I also did a forceCommit() rather than a commit() and there is no difference.
I tested the following physical devices:
Bold 9700 - v5.0.0.862 (1446 Bundle, platform 5.1.0.175)
Torch 9800 - v6.0.0.246 (695 Bundle, platform 6.4.0.150)
The same behavior is exhibited in both devices.
I don't think any of you have already encountered this? I was not able to understand why this is happening and it has been driving me crazy. If you've seen behavior like this and have either thought about it or not, please answer. Thank you!
Imagine that... Address is not persistent. Could have fooled me because once or twice, the program worked by reading the object address of is. The behavior seems to be inconsistent. I have changed my address object in a string and now everything works fine.
-
Battery drain and the Garbage collector?
Hello
I have big problems with the battery...
To analyze these battery issues, I create a multiple event listener and this is what I get:
07/12/2010 18:36:02 | Battery level changed : Battery : 91% (temp : 29 °C) | Signal : -90dbm (cellid : 3181) 07/12/2010 18:36:24 | Global event Occured : UNKNOWN (guid=5961289116197897667 data0=1 data1=0) 07/12/2010 18:36:24 | MemoryCleanerListener[EVENT_DEVICE_LOCK] 07/12/2010 18:36:25 | Backlight changed : On 07/12/2010 18:36:48 | Backlight changed : On 07/12/2010 18:37:02 | Backlight changed : Off 07/12/2010 18:37:09 | Backlight changed : On 07/12/2010 18:37:14 | Backlight changed : On 07/12/2010 18:37:25 | Backlight changed : Off 07/12/2010 18:39:02 | Network state changed : GPRS_STATE_READY 07/12/2010 18:39:04 | Backlight changed : On 07/12/2010 18:39:15 | Backlight changed : Off 07/12/2010 18:39:22 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 18:39:45 | Backlight changed : On 07/12/2010 18:39:57 | Backlight changed : Off 07/12/2010 18:41:00 | Backlight changed : On 07/12/2010 18:41:12 | Backlight changed : Off 07/12/2010 18:41:33 | Backlight changed : On 07/12/2010 18:41:48 | Backlight changed : Off 07/12/2010 18:43:08 | Backlight changed : On 07/12/2010 18:43:20 | Backlight changed : On 07/12/2010 18:43:35 | Backlight changed : Off 07/12/2010 18:44:01 | Backlight changed : On 07/12/2010 18:44:03 | Network state changed : GPRS_STATE_READY 07/12/2010 18:44:14 | Backlight changed : Off 07/12/2010 18:44:17 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 18:44:43 | Backlight changed : On 07/12/2010 18:44:55 | Backlight changed : Off 07/12/2010 18:46:27 | Backlight changed : On 07/12/2010 18:46:58 | Backlight changed : Off 07/12/2010 18:49:55 | Backlight changed : On 07/12/2010 18:50:06 | Backlight changed : Off 07/12/2010 18:50:15 | Backlight changed : On 07/12/2010 18:51:35 | Global event Occured : UNKNOWN (guid=5961289116197897667 data0=2 data1=0) 07/12/2010 18:52:01 | Global event Occured : UNKNOWN (guid=5961289116197897667 data0=1 data1=0) 07/12/2010 18:52:01 | MemoryCleanerListener[EVENT_DEVICE_LOCK] 07/12/2010 18:52:05 | Backlight changed : On 07/12/2010 18:52:19 | Backlight changed : Off 07/12/2010 18:55:52 | Backlight changed : On 07/12/2010 18:56:01 | Backlight changed : On 07/12/2010 18:56:15 | Backlight changed : Off 07/12/2010 18:57:38 | Backlight changed : On 07/12/2010 18:57:47 | Backlight changed : On 07/12/2010 18:58:01 | Backlight changed : On 07/12/2010 18:58:40 | Backlight changed : On 07/12/2010 18:59:03 | Network state changed : GPRS_STATE_READY 07/12/2010 18:59:17 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 18:59:24 | Backlight changed : On 07/12/2010 18:59:47 | Backlight changed : On 07/12/2010 19:00:02 | Backlight changed : Off 07/12/2010 19:04:01 | MemoryCleanerListener[EVENT_IDLE_TIMEOUT] 07/12/2010 19:04:07 | Network state changed : GPRS_STATE_READY 07/12/2010 19:04:22 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 19:06:00 | Backlight changed : On 07/12/2010 19:06:21 | Backlight changed : Off 07/12/2010 19:11:01 | MemoryCleanerListener[EVENT_IDLE_TIMEOUT] 07/12/2010 19:11:57 | Backlight changed : On 07/12/2010 19:12:38 | Backlight changed : On 07/12/2010 19:12:49 | Backlight changed : Off 07/12/2010 19:13:51 | Backlight changed : On 07/12/2010 19:14:40 | Backlight changed : On 07/12/2010 19:15:13 | Backlight changed : On 07/12/2010 19:15:29 | Backlight changed : On 07/12/2010 19:15:34 | Backlight changed : On 07/12/2010 19:15:49 | Backlight changed : On 07/12/2010 19:15:56 | Backlight changed : On 07/12/2010 19:16:05 | Backlight changed : On 07/12/2010 19:16:21 | Backlight changed : Off 07/12/2010 19:18:03 | Backlight changed : On 07/12/2010 19:18:20 | Backlight changed : On 07/12/2010 19:18:56 | Backlight changed : Off 07/12/2010 19:19:08 | Network state changed : GPRS_STATE_READY 07/12/2010 19:19:22 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 19:19:45 | Backlight changed : On 07/12/2010 19:20:32 | Backlight changed : On 07/12/2010 19:20:41 | Backlight changed : On 07/12/2010 19:20:53 | Backlight changed : Off 07/12/2010 19:24:01 | Network state changed : GPRS_STATE_READY 07/12/2010 19:24:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 19:25:00 | MemoryCleanerListener[EVENT_IDLE_TIMEOUT] 07/12/2010 19:27:20 | Backlight changed : On 07/12/2010 19:28:15 | Backlight changed : On 07/12/2010 19:29:23 | Backlight changed : On 07/12/2010 19:29:34 | Backlight changed : Off 07/12/2010 19:34:01 | MemoryCleanerListener[EVENT_IDLE_TIMEOUT] 07/12/2010 19:39:02 | Network state changed : GPRS_STATE_READY 07/12/2010 19:39:17 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 19:42:41 | Backlight changed : On 07/12/2010 19:43:01 | Backlight changed : Off 07/12/2010 19:43:56 | Backlight changed : On 07/12/2010 19:44:07 | Backlight changed : Off 07/12/2010 19:46:15 | Backlight changed : On 07/12/2010 19:46:27 | Backlight changed : Off 07/12/2010 19:51:01 | MemoryCleanerListener[EVENT_IDLE_TIMEOUT] 07/12/2010 19:52:20 | Backlight changed : On 07/12/2010 19:52:32 | Backlight changed : Off 07/12/2010 19:52:34 | Backlight changed : On 07/12/2010 19:52:46 | Backlight changed : Off 07/12/2010 19:52:53 | Backlight changed : On 07/12/2010 19:53:04 | Backlight changed : Off 07/12/2010 19:54:03 | Network state changed : GPRS_STATE_READY 07/12/2010 19:54:17 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 19:57:01 | MemoryCleanerListener[EVENT_IDLE_TIMEOUT] 07/12/2010 19:59:01 | Network state changed : GPRS_STATE_READY 07/12/2010 19:59:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 20:14:02 | Network state changed : GPRS_STATE_READY 07/12/2010 20:14:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 20:19:02 | Network state changed : GPRS_STATE_READY 07/12/2010 20:19:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 20:34:02 | Network state changed : GPRS_STATE_READY 07/12/2010 20:34:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 20:39:02 | Network state changed : GPRS_STATE_READY 07/12/2010 20:39:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 20:46:36 | Network state changed : GPRS_STATE_READY 07/12/2010 20:46:50 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 20:54:03 | Network state changed : GPRS_STATE_READY 07/12/2010 20:54:17 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 20:59:01 | Network state changed : GPRS_STATE_READY 07/12/2010 20:59:15 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 21:10:34 | Backlight changed : On 07/12/2010 21:10:41 | Backlight changed : On 07/12/2010 21:10:41 | Global event Occured : UNKNOWN (guid=5961289116197897667 data0=2 data1=0) 07/12/2010 21:11:27 | Backlight changed : Off 07/12/2010 21:12:53 | Battery level changed : Battery : 89% (temp : 22 °C) | Signal : -74dbm (cellid : 3178) 07/12/2010 21:14:02 | Network state changed : GPRS_STATE_READY 07/12/2010 21:14:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 21:14:53 | Battery level changed : Battery : 87% (temp : 24 °C) | Signal : -74dbm (cellid : 3178) 07/12/2010 21:15:00 | MemoryCleanerListener[EVENT_IDLE_TIMEOUT] 07/12/2010 21:16:53 | Battery level changed : Battery : 85% (temp : 24 °C) | Signal : -73dbm (cellid : 3178) 07/12/2010 21:18:53 | Battery level changed : Battery : 83% (temp : 25 °C) | Signal : -73dbm (cellid : 3178) 07/12/2010 21:19:01 | Network state changed : GPRS_STATE_READY 07/12/2010 21:19:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 21:20:53 | Battery level changed : Battery : 81% (temp : 25 °C) | Signal : -73dbm (cellid : 3178) 07/12/2010 21:22:53 | Battery level changed : Battery : 79% (temp : 26 °C) | Signal : -73dbm (cellid : 3178) 07/12/2010 21:22:53 | Battery problem!! =================================== MEMORY INFORMATIONS =================================== Runtime Memory Free: 131mb free / 146mb RAM Memory free: 7mb free / 23mb RAM Object count: 267k (14mb) Flash Total size : 118mb free / 252mb (67k Objects) Object Handles : 176k free / 512k (14mb) ======================================================================================= 07/12/2010 21:24:53 | Battery level changed : Battery : 78% (temp : 26 °C) | Signal : -66dbm (cellid : 14168) 07/12/2010 21:28:53 | Battery level changed : Battery : 77% (temp : 27 °C) | Signal : -64dbm (cellid : 14168) 07/12/2010 21:30:53 | Battery level changed : Battery : 76% (temp : 27 °C) | Signal : -64dbm (cellid : 14168) 07/12/2010 21:33:20 | Backlight changed : On 07/12/2010 21:34:02 | Network state changed : GPRS_STATE_READY 07/12/2010 21:34:13 | Backlight changed : Off 07/12/2010 21:34:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 21:34:53 | Battery level changed : Battery : 75% (temp : 28 °C) | Signal : -75dbm (cellid : 14168) 07/12/2010 21:34:54 | Battery problem!! =================================== MEMORY INFORMATIONS =================================== Runtime Memory Free: 131mb free / 146mb RAM Memory free: 6mb free / 23mb RAM Object count: 279k (15mb) Flash Total size : 118mb free / 252mb (67k Objects) Object Handles : 164k free / 512k (15mb) ======================================================================================= 07/12/2010 21:38:00 | MemoryCleanerListener[EVENT_IDLE_TIMEOUT] 07/12/2010 21:38:54 | Battery level changed : Battery : 74% (temp : 28 °C) | Signal : -75dbm (cellid : 14168) 07/12/2010 21:39:01 | Network state changed : GPRS_STATE_READY 07/12/2010 21:39:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 21:40:54 | Battery level changed : Battery : 73% (temp : 28 °C) | Signal : -75dbm (cellid : 14168) 07/12/2010 21:44:54 | Battery level changed : Battery : 72% (temp : 29 °C) | Signal : -75dbm (cellid : 14168) 07/12/2010 21:48:54 | Battery level changed : Battery : 71% (temp : 29 °C) | Signal : -75dbm (cellid : 14168) 07/12/2010 21:48:54 | Battery problem!! =================================== MEMORY INFORMATIONS =================================== Runtime Memory Free: 129mb free / 146mb RAM Memory free: 4mb free / 23mb RAM Object count: 390k (16mb) Flash Total size : 118mb free / 252mb (67k Objects) Object Handles : 53k free / 512k (16mb) ======================================================================================= 07/12/2010 21:50:54 | Battery level changed : Battery : 70% (temp : 29 °C) | Signal : -73dbm (cellid : 14168) 07/12/2010 21:54:01 | Network state changed : GPRS_STATE_READY 07/12/2010 21:54:15 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 21:54:54 | Battery level changed : Battery : 69% (temp : 30 °C) | Signal : -73dbm (cellid : 14168) 07/12/2010 21:58:54 | Battery level changed : Battery : 68% (temp : 30 °C) | Signal : -73dbm (cellid : 14168) 07/12/2010 22:02:54 | Battery level changed : Battery : 67% (temp : 30 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:02:55 | Battery problem!! =================================== MEMORY INFORMATIONS =================================== Runtime Memory Free: 133mb free / 146mb RAM Memory free: 9mb free / 23mb RAM Object count: 173k (12mb) Flash Total size : 118mb free / 252mb (67k Objects) Object Handles : 270k free / 512k (12mb) ======================================================================================= 07/12/2010 22:04:54 | Battery level changed : Battery : 66% (temp : 31 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:08:55 | Battery level changed : Battery : 65% (temp : 31 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:09:02 | Network state changed : GPRS_STATE_READY 07/12/2010 22:09:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 22:10:55 | Battery level changed : Battery : 64% (temp : 31 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:12:55 | Battery level changed : Battery : 63% (temp : 31 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:12:55 | Battery problem!! =================================== MEMORY INFORMATIONS =================================== Runtime Memory Free: 128mb free / 146mb RAM Memory free: 4mb free / 23mb RAM Object count: 418k (17mb) Flash Total size : 118mb free / 252mb (67k Objects) Object Handles : 26k free / 512k (17mb) ======================================================================================= 07/12/2010 22:14:01 | Network state changed : GPRS_STATE_READY 07/12/2010 22:14:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 22:14:55 | Battery level changed : Battery : 62% (temp : 32 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:17:01 | Global event Occured : GUID_FLASH_LOW (guid=945659952435832745 data0=0 data1=0) 07/12/2010 22:18:55 | Battery level changed : Battery : 61% (temp : 31 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:20:55 | Battery level changed : Battery : 59% (temp : 32 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:22:55 | Battery level changed : Battery : 58% (temp : 32 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:22:55 | Battery problem!! =================================== MEMORY INFORMATIONS =================================== Runtime Memory Free: 129mb free / 146mb RAM Memory free: 5mb free / 23mb RAM Object count: 370k (16mb) Flash Total size : 118mb free / 252mb (67k Objects) Object Handles : 73k free / 512k (16mb) ======================================================================================= 07/12/2010 22:24:55 | Battery level changed : Battery : 57% (temp : 32 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:26:55 | Battery level changed : Battery : 55% (temp : 32 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:28:55 | Battery level changed : Battery : 54% (temp : 32 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:29:01 | Network state changed : GPRS_STATE_READY 07/12/2010 22:29:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 22:30:55 | Battery level changed : Battery : 53% (temp : 32 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:30:56 | Battery problem!! =================================== MEMORY INFORMATIONS =================================== Runtime Memory Free: 128mb free / 146mb RAM Memory free: 4mb free / 23mb RAM Object count: 409k (17mb) Flash Total size : 118mb free / 252mb (67k Objects) Object Handles : 34k free / 512k (17mb) ======================================================================================= 07/12/2010 22:32:55 | Battery level changed : Battery : 52% (temp : 32 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:34:55 | Battery level changed : Battery : 51% (temp : 32 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:38:56 | Battery level changed : Battery : 50% (temp : 32 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:40:56 | Battery level changed : Battery : 48% (temp : 32 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:40:56 | Battery problem!! =================================== MEMORY INFORMATIONS =================================== Runtime Memory Free: 131mb free / 146mb RAM Memory free: 7mb free / 23mb RAM Object count: 267k (14mb) Flash Total size : 118mb free / 252mb (67k Objects) Object Handles : 176k free / 512k (14mb) ======================================================================================= 07/12/2010 22:42:56 | Battery level changed : Battery : 47% (temp : 32 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:44:02 | Network state changed : GPRS_STATE_READY 07/12/2010 22:44:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 22:44:56 | Battery level changed : Battery : 46% (temp : 32 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:46:56 | Battery level changed : Battery : 44% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:48:56 | Battery level changed : Battery : 42% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:48:56 | Battery problem!! =================================== MEMORY INFORMATIONS =================================== Runtime Memory Free: 130mb free / 146mb RAM Memory free: 6mb free / 23mb RAM Object count: 306k (15mb) Flash Total size : 118mb free / 252mb (67k Objects) Object Handles : 137k free / 512k (15mb) ======================================================================================= 07/12/2010 22:49:01 | Network state changed : GPRS_STATE_READY 07/12/2010 22:49:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 22:50:56 | Battery level changed : Battery : 41% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:52:56 | Battery level changed : Battery : 40% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:54:56 | Battery level changed : Battery : 39% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:56:56 | Battery level changed : Battery : 37% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 22:56:56 | Battery problem!! =================================== MEMORY INFORMATIONS =================================== Runtime Memory Free: 128mb free / 146mb RAM Memory free: 3mb free / 23mb RAM Object count: 442k (17mb) Flash Total size : 118mb free / 252mb (67k Objects) Object Handles : 1k free / 512k (18mb) ======================================================================================= 07/12/2010 22:57:01 | Global event Occured : GUID_FLASH_LOW (guid=945659952435832745 data0=0 data1=0) 07/12/2010 22:58:56 | Battery level changed : Battery : 35% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:00:56 | Battery level changed : Battery : 34% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:02:56 | Battery level changed : Battery : 33% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:04:01 | Network state changed : GPRS_STATE_READY 07/12/2010 23:04:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 23:04:57 | Battery level changed : Battery : 32% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:04:57 | Battery problem!! =================================== MEMORY INFORMATIONS =================================== Runtime Memory Free: 135mb free / 146mb RAM Memory free: 10mb free / 23mb RAM Object count: 94k (11mb) Flash Total size : 118mb free / 252mb (67k Objects) Object Handles : 350k free / 512k (11mb) ======================================================================================= 07/12/2010 23:06:57 | Battery level changed : Battery : 31% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:08:57 | Battery level changed : Battery : 29% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:10:57 | Battery level changed : Battery : 28% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:12:57 | Battery level changed : Battery : 26% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:12:57 | Battery problem!! =================================== MEMORY INFORMATIONS =================================== Runtime Memory Free: 134mb free / 146mb RAM Memory free: 9mb free / 23mb RAM Object count: 134k (11mb) Flash Total size : 118mb free / 252mb (67k Objects) Object Handles : 309k free / 512k (11mb) ======================================================================================= 07/12/2010 23:16:01 | Global event Occured : GUID_FLASH_LOW (guid=945659952435832745 data0=0 data1=0) 07/12/2010 23:16:57 | Battery level changed : Battery : 25% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:19:02 | Network state changed : GPRS_STATE_READY 07/12/2010 23:19:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 23:20:57 | Battery level changed : Battery : 24% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:22:57 | Battery level changed : Battery : 23% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:24:01 | Network state changed : GPRS_STATE_READY 07/12/2010 23:24:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 23:26:57 | Battery level changed : Battery : 22% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:26:58 | Battery problem!! =================================== MEMORY INFORMATIONS =================================== Runtime Memory Free: 134mb free / 146mb RAM Memory free: 10mb free / 23mb RAM Object count: 109k (11mb) Flash Total size : 118mb free / 252mb (67k Objects) Object Handles : 334k free / 512k (11mb) ======================================================================================= 07/12/2010 23:30:57 | Battery level changed : Battery : 21% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:34:58 | Battery level changed : Battery : 20% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:39:01 | Network state changed : GPRS_STATE_READY 07/12/2010 23:39:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 23:40:58 | Battery level changed : Battery : 19% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:44:58 | Battery level changed : Battery : 18% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:44:58 | Battery problem!! =================================== MEMORY INFORMATIONS =================================== Runtime Memory Free: 129mb free / 146mb RAM Memory free: 4mb free / 23mb RAM Object count: 400k (17mb) Flash Total size : 118mb free / 252mb (67k Objects) Object Handles : 43k free / 512k (17mb) ======================================================================================= 07/12/2010 23:46:37 | Network state changed : GPRS_STATE_READY 07/12/2010 23:46:51 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 23:48:58 | Battery level changed : Battery : 17% (temp : 34 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:54:02 | Network state changed : GPRS_STATE_READY 07/12/2010 23:54:16 | Network state changed : GPRS_STATE_STANDBY 07/12/2010 23:56:58 | Battery level changed : Battery : 16% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:58:58 | Battery level changed : Battery : 15% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 07/12/2010 23:59:01 | Network state changed : GPRS_STATE_READY 07/12/2010 23:59:16 | Network state changed : GPRS_STATE_STANDBY 08/12/2010 00:02:59 | Battery level changed : Battery : 14% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 08/12/2010 00:02:59 | Battery problem!! =================================== MEMORY INFORMATIONS =================================== Runtime Memory Free: 129mb free / 146mb RAM Memory free: 4mb free / 23mb RAM Object count: 399k (17mb) Flash Total size : 118mb free / 252mb (67k Objects) Object Handles : 44k free / 512k (17mb) ======================================================================================= 08/12/2010 00:08:59 | Battery level changed : Battery : 13% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 08/12/2010 00:11:01 | Global event Occured : GUID_FLASH_LOW (guid=945659952435832745 data0=0 data1=0) 08/12/2010 00:14:02 | Network state changed : GPRS_STATE_READY 08/12/2010 00:14:16 | Network state changed : GPRS_STATE_STANDBY 08/12/2010 00:14:59 | Battery level changed : Battery : 12% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 08/12/2010 00:18:59 | Battery level changed : Battery : 11% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 08/12/2010 00:19:01 | Network state changed : GPRS_STATE_READY 08/12/2010 00:19:16 | Network state changed : GPRS_STATE_STANDBY 08/12/2010 00:22:59 | Battery level changed : Battery : 10% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 08/12/2010 00:22:59 | Battery problem!! =================================== MEMORY INFORMATIONS =================================== Runtime Memory Free: 132mb free / 146mb RAM Memory free: 8mb free / 23mb RAM Object count: 216k (13mb) Flash Total size : 118mb free / 252mb (67k Objects) Object Handles : 228k free / 512k (13mb) ======================================================================================= 08/12/2010 00:28:59 | Battery level changed : Battery : 9% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 08/12/2010 00:29:00 | Battery Low 08/12/2010 00:29:01 | Vibrate done (reason 2) 08/12/2010 00:29:04 | Vibrate done (reason 2) 08/12/2010 00:30:00 | Battery level changed : Battery : 8% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 08/12/2010 00:33:00 | Battery status changed : BSTAT_LOW,BSTAT_NO_CAMERA_FLASH 08/12/2010 00:33:30 | Battery level changed : Battery : 7% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 08/12/2010 00:34:00 | Battery level changed : Battery : 5% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 08/12/2010 00:34:00 | Battery problem!! =================================== MEMORY INFORMATIONS =================================== Runtime Memory Free: 133mb free / 146mb RAM Memory free: 8mb free / 23mb RAM Object count: 175k (12mb) Flash Total size : 118mb free / 252mb (67k Objects) Object Handles : 269k free / 512k (12mb) ======================================================================================= 08/12/2010 00:34:02 | Network state changed : GPRS_STATE_READY 08/12/2010 00:34:17 | Network state changed : GPRS_STATE_STANDBY 08/12/2010 00:47:02 | Battery level changed : Battery : 4% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 08/12/2010 00:48:02 | Battery level changed : Battery : 3% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 08/12/2010 00:49:04 | Network state changed : GPRS_STATE_READY 08/12/2010 00:49:18 | Network state changed : GPRS_STATE_STANDBY 08/12/2010 00:54:01 | Network state changed : GPRS_STATE_READY 08/12/2010 00:54:15 | Network state changed : GPRS_STATE_STANDBY 08/12/2010 01:09:01 | Network state changed : GPRS_STATE_READY 08/12/2010 01:09:16 | Network state changed : GPRS_STATE_STANDBY 08/12/2010 01:24:02 | Network state changed : GPRS_STATE_READY 08/12/2010 01:24:16 | Network state changed : GPRS_STATE_STANDBY 08/12/2010 01:29:01 | Network state changed : GPRS_STATE_READY 08/12/2010 01:29:16 | Network state changed : GPRS_STATE_STANDBY 08/12/2010 01:34:38 | Battery level changed : Battery : 2% (temp : 33 °C) | Signal : -74dbm (cellid : 14168) 08/12/2010 01:44:01 | Network state changed : GPRS_STATE_READY 08/12/2010 01:44:16 | Network state changed : GPRS_STATE_STANDBY 08/12/2010 01:50:10 | Battery level changed : Battery : 1% (temp : 34 °C) | Signal : -74dbm (cellid : 14168) 08/12/2010 01:52:41 | Battery status changed : BSTAT_LOW,BSTAT_NO_CAMERA_FLASH,BSTAT_NO_RADIO,BSTAT_NO_WLAN 08/12/2010 01:52:41 | Global event Occured : UNKNOWN (guid=5961289116197897667 data0=1 data1=0) 08/12/2010 01:52:41 | Global event Occured : UNKNOWN (guid=5961289116197897667 data0=3 data1=0)
My app works on a Curve 8900 with os 4.6.1.310
My application for the battery drain did nothing more than before draining. The app has no timer and I just created a new record in RMS at 21:11 and then the battery drain started (I don't have touch the device more after that).
Maybe I use a lot of memory but battery never drain start at the same time and memory seems OK and no different than when it does not drain the battery.
There is no MemoryLeak because after the Garbage collector, I have the same amount of memory.
Is there a mechanism that can work when there is problem of memory like GarbageCollector in the BONE, or maybe that's not a problem of memory, which could drain the battery like that? There is nothing strange in the event log.
How can I get more information such as CPU, or anything else that can help me determine what is happen.
I can't reproduce the problem when I want and not on all my devices. We have change the levels is not a battery problem.
The device is connected to a BES and I disable memorycleaner, wifi, bluetooth, otasync, etc.
I tried with display of genius, but I wasn't able to watch it for the battery drain...
I am really lost and don't know what is coming...
Please help me
I just found the cause of the problem, this is a loop of paint on a form that contains a custom textfield who painted it is own container which repainted the textfield itself, etc.
I solved the problem with JDE 5.0 and its view of CPU that helps me detect this problem.
Thanks for your help! -
names of paths and the container collections
Hello
I have two questions (running the shell. / dbxml):
(a) when I opened a container, for example /path/to/my/container.dbxml (a container that is not in my default DB environment)
with the command "openContainer /path/to/my/container.dbxml."
How can I perform an xquery query then?
because if I try to "request"collection("/path/to/my/container.dbxml") / *' ', "
I get the error:
stdin:8: the query failed, error: could not resolve the container: path/to/my/container.dbxml. No open container and automatic opening is not enabled. Container cannot exist.
But my container does not exist!
(I won't use aliases)
(b) how do we get the names of documents within a collection?
Thank you.(a) why not use just "collection()' when you opened a container? You don't have to provide a path that he once you opened
(b) collection () / dbxml:metadata('dbxml:name')Vyacheslav
-
Oracle unified method and the project Charter
Where can I get models for unified project Oracle method?
I also need a model of a document of Charter of project for a cool application of the property Manager Module.
Grateful if someone can help.
Details are here - https://blogs.oracle.com/oum/entry/oracle_unified_method_oum_62
-
Does garbage collection occurs in the region of PERM of Java Heap?
Hi guys,.
I am a new Member to this forum, my name is Javin Paul and I'm a Java programmer. I have a question related to the garbage collection in Java
Does garbage collection occurs in the region of PERM of Java Heap?
According to my knowledge PERM area is used to store metadata about classes, methods, variable etc also string Pool created in PERM area of the heap, so I believe that garbage do not occur in this place, but I just wanted to know what you guys think of it?
Thank you
HervéBasics segment of memory and so on that you are used to, do not apply the FMV of Blackberry - well they probably not, but it is well hidden from us. I recommend you check out this video to understand what you can control re garbage collection operation.
-
Question on the impact of Garbage collection
I get messages in the log as below...
2009-09-09 14:33:21.677/691.607 Oracle coherence EE 3.5/459 < D5 > (thread = PacketPublisher, Member = 4): experienced a delay of communication ms 538 (GC distance likely) with Member (Id = 7, Timestamp is 14:24:51.312 2009-09-09, address = 10.0.0.205:8094, MachineId = 2765, location = site: server07, process: 10125, role = ServerContainer); 22 packages reprogrammed, PauseRate = 0.0010, threshold = 1976
In the case above Member 4 is an active storage node and Member 7 is not.
Basically, it runs a distributed cache, in a client/server operation.
I understand that this basically means consistency server is waiting to communicate to the customer and cannot due to the garbage collection operation.
This is perfect, we expect in this scenario, the client JVM to have breaks from garbage collection, we cross GC optimization at the moment.
To get to the question later :) Does this mean that this node is unable to communicate to other nodes of customer for 538ms? And so the customer break GC affects consistency server node and therefore all client nodes?
I expect the cache to always respond to requests to take, but if there is only one responsible for thread of the publication of the packages to clients (as indicated by the name of the thread) so I can't imagine it would be blocked.
I don't see anything specific in the forums about this. I found the following
"Although it is quite possible to see the log messages indicating that a cache server" has experienced behind communication ", these messages are generated by the TCMP layer and have no impact on the responsiveness of cache to requests for other customers service." ""
But wasn't 100% sure that it meant no effect, or no impact on making queries.
Thank you
SteveThis means that this node will be suspended during this period.
Of course other nodes will be able to continue, but if you do something that affects this node he asks should wait (for example, the aggregation on all nodes).
However, if you have found (for example) an object of key to another node that will be just fine.
There are many solutions to these problems, but all can take a huge amount of time.
(1) by using CG (parallel) differential ParNew
(2) using the experimental (parallel) GC G1 in JDK6_14 but ready to use in JDK7. I read an article on Chicago Board of Options Exchange using it wisely.
(3) to aid in time real Sun JVM
(4) to aid Oracle's JRockitBest, Andrew.
-
Turn on Weblogic Garbage Collection HP - UX Itanium
Hallo! I'm totally new to WebLogic. I was sent 11 Flexcube Universal Banking on Weblogic 10.3.2 accessing a server Oracle 11 GR 2 on HP - UX Itanium platform. Furthermore, I use Sun's JAVA virtual machine
However, the deployment of Flexcube is extremely slow, crashes and the server frequently managed overloads. I hope that by implementing the garbage collection, I can solve these problems.
Please provide me with the syntax to implement garbage collection operation in the architecture described above weblogic. All other boards of adjustment will be welcome. My setDomainEnv.sh script is as below
Thank you.
! / bin/sh
# CAUTION: This file is created by the Configuration Wizard.
# Any changes made to this script may be lost when adding extensions to this configuration.
#---Fonctions start-
BP = 100
SP = $BP
pushd()
{
If [-z "$1"]
then
return
FI
SP = 'expr $SP - 1'.
EVAL _stack$ SP = 'pwd '.
CD $1
return
}
popd()
{
If [$SP - eq $BP]
then
return
FI
EVAL cd \${_stack$SP}
SP = 'expr $SP + 1'.
return
}
#---Fonctions-
# *************************************************************************
# This script is used to set up the environment needed to be able to start Weblogic Server in this field.
#
# This script Initializes the following variables before calling commEnv to set the other variables:
#
# WL_HOME - the WebLogic of BEA installation directory.
# JAVA_VM - the Java VM you want to use. You can set this environment variable before calling
# This script from a Sun, or BEA, or everything just have the default set.
# JAVA_HOME - location of the version of Java used to start WebLogic
# Server. Depends directly on what JAVA_VM has the value default or the environment.
# USER_MEM_ARGS - the variable to override the standard memory arguments
# passed to java.
# PRODUCTION_MODE - the variable that determines if Weblogic Server is started in production mode.
# DOMAIN_PRODUCTION_MODE
# - The variable that determines if the workshop related settings such as the debugger,
# testconsole or iterativedev must be enabled. Can ONLY be set using the
command line parameter # named production
# NOTE: Specify the command line of production parameter will force
# the server starts in production mode.
#
# Other variables used in this text include:
# Servername - name of the weblogic server.
# JAVA_OPTIONS - Java command line options for the server. (These
# will be marked at the end of the JAVA_VM and
(# MEM_ARGS)
#
# For more information, see "Managing Server Startup and Shutdown for Oracle WebLogic Server"
# (http://download.oracle.com/docs/cd/E12839_01/web.1111/e13708/overview.htm).
# *************************************************************************
WL_HOME="/Oracle/middleware/wlserver_10.3".
export WL_HOME
BEA_JAVA_HOME =""
export BEA_JAVA_HOME
SUN_JAVA_HOME =""
export SUN_JAVA_HOME
If ["${JAVA_VENDOR}" = "Oracle"]; then
JAVA_HOME = "${BEA_JAVA_HOME}".
Export JAVA_HOME
on the other
If ["${JAVA_VENDOR}" = "Sun"]; then
JAVA_HOME = "${SUN_JAVA_HOME}".
Export JAVA_HOME
on the other
JAVA_VENDOR = "HP".
export JAVA_VENDOR
JAVA_HOME = "/ opt/java6.
Export JAVA_HOME
FI
FI
# It must reset the value of JAVA_HOME to get AND shortened
# We do not shorten above because immediate variable expansion will be erase
JAVA_HOME = "${JAVA_HOME}.
Export JAVA_HOME
SAMPLES_HOME = "${WL_HOME}" / samples ""
export SAMPLES_HOME
DOMAIN_HOME = ' / oracle/middleware/user_projects/domains/base_domain ".
export DOMAIN_HOME
LONG_DOMAIN_HOME = ' / oracle/middleware/user_projects/domains/base_domain ".
export LONG_DOMAIN_HOME
If ["${DEBUG_PORT}" = ""]; then
DEBUG_PORT = "8453.
export DEBUG_PORT
FI
If ["${server_name}" = ""]; then
Server_name = 'AdminServer.
Export SERVER_NAME
FI
POINTBASE_FLAG = "false".
export POINTBASE_FLAG
enableHotswapFlag =""
export enableHotswapFlag
PRODUCTION_MODE = 'true '.
export PRODUCTION_MODE
doExitFlag = "false".
export doExitFlag
verboseLoggingFlag = "false".
export verboseLoggingFlag
While [$#-gt 0]
do
case $1 in
/nodebug)
debugFlag = "false".
export debugFlag
;;
production)
DOMAIN_PRODUCTION_MODE = 'true '.
export DOMAIN_PRODUCTION_MODE
;;
notestconsole)
testConsoleFlag = "false".
export testConsoleFlag
;;
noiterativedev)
iterativeDevFlag = "false".
export iterativeDevFlag
;;
noLogErrorsToConsole)
logErrorsToConsoleFlag = "false".
export logErrorsToConsoleFlag
;;
nopointbase)
POINTBASE_FLAG = "false".
export POINTBASE_FLAG
;;
doExit)
doExitFlag = 'true '.
export doExitFlag
;;
noExit)
doExitFlag = "false".
export doExitFlag
;;
verbose)
verboseLoggingFlag = 'true '.
export verboseLoggingFlag
;;
enableHotswap)
enableHotswapFlag="-javaagent:${WL_HOME}/server/lib/diagnostics-agent.jar".
export enableHotswapFlag
;;
*)
PROXY_SETTINGS = "${PROXY_SETTINGS} $1.
export PROXY_SETTINGS
;;
ESAC
Maj
fact
MEM_DEV_ARGS =""
export MEM_DEV_ARGS
If ["${DOMAIN_PRODUCTION_MODE}" = "true"]; then
PRODUCTION_MODE = "${DOMAIN_PRODUCTION_MODE}".
export PRODUCTION_MODE
FI
If ["${PRODUCTION_MODE}" = "true"]; then
debugFlag = "false".
export debugFlag
testConsoleFlag = "false".
export testConsoleFlag
iterativeDevFlag = "false".
export iterativeDevFlag
logErrorsToConsoleFlag = "false".
export logErrorsToConsoleFlag
FI
# If you want to override the default Patch Classpath, the library path and the path for this area.
# Please uncomment the following lines and add a value valid for environment variables
# define PATCH_CLASSPATH = [myPatchClasspath] (windows)
# define PATCH_LIBPATH = [myPatchLibpath] (windows)
# define PATCH_PATH = [myPatchPath] (windows)
# PATCH_CLASSPATH = [myPatchClasspath] (unix)
# PATCH_LIBPATH = [myPatchLibpath] (unix)
# PATCH_PATH = [myPatchPath] (unix)
. ${WL_HOME}/common/bin/commEnv.sh
WLS_HOME = "${WL_HOME}" / Server ""
export WLS_HOME
If ["${JAVA_VENDOR}" = "Sun"]; then
WLS_MEM_ARGS_64BIT = "- Xms256m - Xmx512m".
export WLS_MEM_ARGS_64BIT
WLS_MEM_ARGS_32BIT = "- Xms256m - Xmx512m".
export WLS_MEM_ARGS_32BIT
on the other
WLS_MEM_ARGS_64BIT = "- Xms512m - Xmx512m".
export WLS_MEM_ARGS_64BIT
WLS_MEM_ARGS_32BIT = "- Xms512m - Xmx512m".
export WLS_MEM_ARGS_32BIT
FI
MEM_ARGS_64BIT = "${WLS_MEM_ARGS_64BIT}".
export MEM_ARGS_64BIT
MEM_ARGS_32BIT = "${WLS_MEM_ARGS_32BIT}".
export MEM_ARGS_32BIT
If ["${JAVA_USE_64BIT}" = "true"]; then
MEM_ARGS = "${MEM_ARGS_64BIT}".
export MEM_ARGS
on the other
MEM_ARGS = "${MEM_ARGS_32BIT}".
export MEM_ARGS
FI
MEM_PERM_SIZE_64BIT = ""-XX:PermSize = 128 m ""
export MEM_PERM_SIZE_64BIT
MEM_PERM_SIZE_32BIT = ""-XX:PermSize = 48 m ""
export MEM_PERM_SIZE_32BIT
If ["${JAVA_USE_64BIT}" = "true"]; then
MEM_PERM_SIZE = "${MEM_PERM_SIZE_64BIT}".
export MEM_PERM_SIZE
on the other
MEM_PERM_SIZE = "${MEM_PERM_SIZE_32BIT}".
export MEM_PERM_SIZE
FI
MEM_MAX_PERM_SIZE_64BIT = ""-XX:MaxPermSize = 256 m ""
export MEM_MAX_PERM_SIZE_64BIT
MEM_MAX_PERM_SIZE_32BIT = ""-XX:MaxPermSize = 128 m ""
export MEM_MAX_PERM_SIZE_32BIT
If ["${JAVA_USE_64BIT}" = "true"]; then
MEM_MAX_PERM_SIZE = "${MEM_MAX_PERM_SIZE_64BIT}".
export MEM_MAX_PERM_SIZE
on the other
MEM_MAX_PERM_SIZE = "${MEM_MAX_PERM_SIZE_32BIT}".
export MEM_MAX_PERM_SIZE
FI
If ["${JAVA_VENDOR}" = "Sun"]; then
If ["${PRODUCTION_MODE}" = ""]; then
MEM_DEV_ARGS = "-XX:CompileThreshold = $8000 {MEM_PERM_SIZE}"
export MEM_DEV_ARGS
FI
FI
# Must have a separate trial here because of the immediate expansion of the variables under windows
If ["${JAVA_VENDOR}" = "Sun"]; then
MEM_ARGS = "${MEM_ARGS} ${MEM_DEV_ARGS} ${MEM_MAX_PERM_SIZE}".
export MEM_ARGS
FI
If ["${JAVA_VENDOR}" = "HP"]; then
MEM_ARGS = "${MEM_ARGS} ${MEM_MAX_PERM_SIZE}".
export MEM_ARGS
FI
If ["${JAVA_VENDOR}" = "Apple"]; then
MEM_ARGS = "${MEM_ARGS} ${MEM_MAX_PERM_SIZE}".
export MEM_ARGS
FI
If ["${JAVA_VENDOR}" = "IBM"]; then
MEM_ARGS = "${MEM_ARGS} ${MEM_MAX_PERM_SIZE}".
export MEM_ARGS
FI
# If the environment variable USER_MEM_ARGS is set, use it to substitute the values of all THE MEM_ARGS
If ["${USER_MEM_ARGS}"! = ""]; then
MEM_ARGS = "${USER_MEM_ARGS}".
export MEM_ARGS
FI
JAVA_PROPERTIES = "-Dplatform.home =, ${WL_HOME} - Dwls.home = ${WLS_HOME} - Dweblogic.home = ${WLS_HOME}"
export JAVA_PROPERTIES
# To use Java authorization contract for containers (JACC) in this area,
# Uncomment the next section please. If there are several machines
# your domain name, make sure to change the setDomainEnv in the area associated with
# each machine.
#
# - Djava.security.manager
# - Djava.security.policy = weblogic.policy rental
# - Djavax.security.jacc.policy.provider = weblogic.security.jacc.simpleprovider.SimpleJACCPolicy
# - Djavax.security.jacc.PolicyConfigurationFactory.provider = weblogic.security.jacc.simpleprovider.PolicyConfigurationFactoryImpl
# - Dweblogic.security.jacc.RoleMapperFactory.provider = weblogic.security.jacc.simpleprovider.RoleMapperFactoryImpl
JAVA_PROPERTIES = "${JAVA_PROPERTIES} ${EXTRA_JAVA_PROPERTIES}".
export JAVA_PROPERTIES
ARDIR = "${WL_HOME} / server/lib '.
export ARDIR
pushd ${LONG_DOMAIN_HOME}
# Clustering support (edit for your cluster!)
If ["${ADMIN_URL}" = ""]; then
# The part then this block tells us we're starting either a server admin OR we are nonclustered
CLUSTER_PROPERTIES = ""-Dweblogic.management.discover = true ' "
export CLUSTER_PROPERTIES
on the other
CLUSTER_PROPERTIES = ' - Dweblogic.management.discover = false - Dweblogic.management.server = ${ADMIN_URL} ".
export CLUSTER_PROPERTIES
FI
If ["${LOG4J_CONFIG_FILE}"! = ""]; then
JAVA_PROPERTIES = "${JAVA_PROPERTIES} - Dlog4j.configuration = file: ${LOG4J_CONFIG_FILE}" "
export JAVA_PROPERTIES
FI
JAVA_PROPERTIES = "${JAVA_PROPERTIES} ${CLUSTER_PROPERTIES}".
export JAVA_PROPERTIES
JAVA_DEBUG =""
export JAVA_DEBUG
If ["${debugFlag}" = "true"]; then
JAVA_DEBUG = "-Xdebug - Xnoagent - Xrunjdwp: transport = dt_socket, address = ${DEBUG_PORT}", server = y, suspend = n - Djava.compiler = NONE ""
export JAVA_DEBUG
JAVA_OPTIONS = "${JAVA_OPTIONS} ${enableHotswapFlag} - ch - da: com.bea-da: Javelin--da: weblogic... -... ea:com.bea.wli - ea:com.bea.broker... - ea:com.bea.sbconsole..." »
Export JAVA_OPTIONS
on the other
JAVA_OPTIONS = "${JAVA_OPTIONS} {enableHotswapFlag} '-da '"
Export JAVA_OPTIONS
FI
If [! d ${JAVA_HOME} / lib]; then
ECHO "the JRE is not found in the directory ${JAVA_HOME}." (JAVA_HOME) »
ECHO "Please change your environment and set the JAVA_HOME.
echo "variable to point to the root directory of your Java installation.
popd
read _val
output
FI
If ["${POINTBASE_FLAG}" = "true"]; then
DATABASE_CLASSPATH = "${POINTBASE_CLASSPATH}".
export DATABASE_CLASSPATH
on the other
DATABASE_CLASSPATH = "${POINTBASE_CLIENT_CLASSPATH}".
export DATABASE_CLASSPATH
FI
If ["${DATABASE_CLASSPATH}"! = ""]; then
If ["${POST_CLASSPATH}"! = ""]; then
POST_CLASSPATH = "${POST_CLASSPATH} ${CLASSPATHSEP} ${DATABASE_CLASSPATH}".
export POST_CLASSPATH
on the other
POST_CLASSPATH = "${DATABASE_CLASSPATH}".
export POST_CLASSPATH
FI
FI
If ["${ARDIR}"! = ""]; then
If ["${POST_CLASSPATH}"! = ""]; then
POST_CLASSPATH = "${POST_CLASSPATH} ${CLASSPATHSEP} ${ARDIR}" / XQRL.jar ' "
export POST_CLASSPATH
on the other
POST_CLASSPATH = "${ARDIR}" / XQRL.jar ' "
export POST_CLASSPATH
FI
FI
# SUPPORT PROFILING
JAVA_PROFILE =""
export JAVA_PROFILE
SERVER_CLASS = "weblogic. Server '.
export SERVER_CLASS
JAVA_PROPERTIES = "${JAVA_PROPERTIES} ${WLP_JAVA_PROPERTIES}".
export JAVA_PROPERTIES
JAVA_OPTIONS = "${JAVA_OPTIONS} {JAVA_PROPERTIES} - Dwlw.iterativeDev = ${iterativeDevFlag} - Dwlw.testConsole = ${testConsoleFlag} - Dwlw.logErrorsToConsole = ${logErrorsToConsoleFlag}" "
Export JAVA_OPTIONS
If ["${DOMAIN_PRODUCTION_MODE}" = "true"]; then
"JAVA_OPTIONS =" - Dweblogic.ProductionModeEnabled = true, ${JAVA_OPTIONS} "
Export JAVA_OPTIONS
FI
#--Propriétés of configuration, so that we can save stdout and stderr to files
If ["${WLS_STDOUT_LOG}"! = ""]; then
echo "Logging WLS stdout to ${WLS_STDOUT_LOG}".
JAVA_OPTIONS = "${JAVA_OPTIONS} - Dweblogic.Stdout = ${WLS_STDOUT_LOG}" "
Export JAVA_OPTIONS
FI
If ["${WLS_STDERR_LOG}"! = ""]; then
echo "Logging WLS stderr to ${WLS_STDERR_LOG}".
JAVA_OPTIONS = "${JAVA_OPTIONS} - Dweblogic.Stderr = ${WLS_STDERR_LOG}" "
Export JAVA_OPTIONS
FI
# ADD EXTENSIONS TO CLASS PATHS
If ["${EXT_PRE_CLASSPATH}"! = ""]; then
If ["${PRE_CLASSPATH}"! = ""]; then
PRE_CLASSPATH = "${EXT_PRE_CLASSPATH} ${CLASSPATHSEP} ${PRE_CLASSPATH}".
export PRE_CLASSPATH
on the other
PRE_CLASSPATH = "${EXT_PRE_CLASSPATH}".
export PRE_CLASSPATH
FI
FI
If ["${EXT_POST_CLASSPATH}"! = ""]; then
If ["${POST_CLASSPATH}"! = ""]; then
POST_CLASSPATH = "${POST_CLASSPATH} ${CLASSPATHSEP} ${EXT_POST_CLASSPATH}".
export POST_CLASSPATH
on the other
POST_CLASSPATH = "${EXT_POST_CLASSPATH}".
export POST_CLASSPATH
FI
FI
If ["${WEBLOGIC_EXTENSION_DIRS}"! = ""]; then
JAVA_OPTIONS = "${JAVA_OPTIONS} - Dweblogic.ext.dirs = ${WEBLOGIC_EXTENSION_DIRS}" "
Export JAVA_OPTIONS
FI
JAVA_OPTIONS = "${JAVA_OPTIONS}"
Export JAVA_OPTIONS
# SET THE CLASSPATH
If ["${WLP_POST_CLASSPATH}"! = ""]; then
If ["${CLASSPATH}"! = ""]; then
CLASSPATH = "${WLP_POST_CLASSPATH} ${CLASSPATHSEP} ${CLASSPATH}.
Export CLASSPATH
on the other
CLASSPATH = "${WLP_POST_CLASSPATH}".
Export CLASSPATH
FI
FI
If ["${POST_CLASSPATH}"! = ""]; then
If ["${CLASSPATH}"! = ""]; then
CLASSPATH = "${POST_CLASSPATH} ${CLASSPATHSEP} ${CLASSPATH}.
Export CLASSPATH
on the other
CLASSPATH = "${POST_CLASSPATH}".
Export CLASSPATH
FI
FI
If ["${WEBLOGIC_CLASSPATH}"! = ""]; then
If ["${CLASSPATH}"! = ""]; then
CLASSPATH = "${WEBLOGIC_CLASSPATH} ${CLASSPATHSEP} ${CLASSPATH}.
Export CLASSPATH
on the other
CLASSPATH = "${WEBLOGIC_CLASSPATH}".
Export CLASSPATH
FI
FI
If ["${PRE_CLASSPATH}"! = ""]; then
CLASSPATH = "${PRE_CLASSPATH} ${CLASSPATHSEP} ${CLASSPATH}.
Export CLASSPATH
FI
If ["${JAVA_VENDOR}"! = "BEA"]; then
JAVA_VM = "${JAVA_VM} ${JAVA_DEBUG} ${JAVA_PROFILE}".
export JAVA_VM
on the other
JAVA_VM = "${JAVA_VM} ${JAVA_DEBUG} ${JAVA_PROFILE}".
export JAVA_VM
FI1, using Sun's JAVA with HP virtual machine? Why not change to the JVM from HP.
2, if you use the JDK from HP:
Add lines to follow in setDomainEnv.sh
GC_LOG="${DOMAIN_HOME}/bin/${server_name}.GC$$.log".
MEM_ARGS = "- Xms1024m - Xmx1024m"
MEM_ARGS = "${MEM_ARGS}"-XX: NewSize = 256 m - XX: MaxNewSize = 256 m - XX: PermSize = 128 m - XX: MaxPermSize = 256 m - XX: SurvivorRatio = 8 ""
MEM_ARGS = "${MEM_ARGS} - Xoptgc - XX: + PrintGCTimeStamps - XX: + PrintGCDetails - Xloggc: ${GC_LOG}" "
MEM_ARGS = "${MEM_ARGS}"-XX: + UseSpinning - XX: + HeapDumpOnOutOfMemoryError - XX: + HeapDumpOnly ""export MEM_ARGS
3, you can use HPjmeter to monitor your server instance. It can help you find the problem quickly and easily.
-
messages between the main thread and the FX application thread
I run a thread of the Application of FX for a main thread using Application.launch [described here: {: identifier of the thread = 2530636}]
I try to have the application thread return information on the main thread, but Application.launch returns void. Is there an easy way to communicate between the main thread and the thread of the Application?
So far, I googled and found:
-MOM (Message Oriented Middleware)
-Sockets
Thoughts/ideas/examples are appreciated--especially examples ;)--now I try to use Sockets to show/hide the application and data transmission.
What is the preferred method? Are there others that I did not find (gasp) via Google?
Dave.
Published by: cr0ck3t on April 30, 2013 21:04
Published by: cr0ck3t on April 30, 2013 21:05Is there an easy way to get a reference to these objects to both the main thread and the thread of Application FX - called via Application.launch () since the main thread? Or what I need to use Sockets or MOM?
Not much to do with the concurrent programming is what I would call easy. It looks easy - but it's not.
You can do kind of what you're describing using Java concurrency constructs without using sockets or a package of Message Oriented Middleware (MOM).
With the Java concurrency stuff you really implement your own form or MOM light.
If you have quite an application is complex with many messages of comes and goes, then a sort of package for MOM such as the camel and ActiveMQ (http://camel.apache.org) is useful.
---------
You can find a sample of the various interactions of thread with JavaFX here:
https://gist.github.com/jewelsea/5500981 "Simulation of dwarf dragons using multiple threads to eat."
Related code is just demo-ware to try different competitive access facilities and not necessarily a recommended strategy.
If your curiosity, you can take a look and try to work out what it is, what it does and how it does.
The main reason followed is that of a blocking queue:
http://docs.Oracle.com/javase/6/docs/API/Java/util/concurrent/BlockingQueue.html
---------
Note that once you call launch of the main thread, no subsequent statement in the main method will be different until the JavaFX application terminates. If you can't start from the main thread and communicate with the main thread JavaFX application. Instead, you need to spawn another thread (or a set of threads) for communication with the JavaFX application.
---------
But really, in most cases, the best solution with the simultaneity is not care at all (or at least as little as possible). Write everything in JavaFX, use the animation of JavaFX framework to time related things and the simultaneity of JavaFX utilities for when you really need multiple interaction of wire.
http://docs.Oracle.com/JavaFX/2/threads/jfxpub-threads.htm
----------
For additional assistance, you may be better off describing exactly (i.e. really specific) what you're trying to make in a new question, perhaps with a solution of the sample in a http://sscce.org NBS -
Run garbage collection operation in AIR - iOS app
Just to be in a bit of a learning curve, develop a Flash application for browser used in a browser and set up with the memory management optimal if all goes well using Flash Professional CS5.5.
Part of the process is to make sure that the object have no reference pointing of the finger when they are made with so much garbage can clean them.
Now, I came to the port of the application on iOS for iPad. My question is... Air for iOS, run the garbage collection?
Thank you
Mark
Yes. and you can manually force garbage collection by calling System.GC() If you use Air 3.0
but try not to rely too much on the gc to solve memory problems... too much to clean up causes a very noticeable lag when running, and it does not work in any foreseeable calendar I can say... If your memory get is too high, your application can be ejected and crash.
something to keep in mind, recycle and pool objects and varibles as much as you possibly CAN... try using the NEW keyword as little as possible... then all killed during a phase transition or loading followed a system.GC() if the offset is not noticeable.
-
Some Garbage Collection issues
I searched the Garbage Collection, and I still have some doubts. Consider the following code:
var objt:Sprite = new Sprite();
var child: Sprite = new Sprite();
stage.addChild (obj);
obj.addChild (child);
obj.addEventListener (MouseEvent.MOUSE_DOWN, onMouseDown, false, 0, true);
child.addEventListener (MouseEvent.MOUSE_DOWN, onMouseDown, false, 0, true);
Suppose I want to get rid of (delete, delete, destroy, purge, KILL >: D) everything about obj (itself, its events, its children and its event listeners listeners). Is the following code enough? :
stage.removeChild (obj);
obj.removeEventListener (MouseEvent.MOUSE_DOWN, onMouseDown);
Delete obj;
Yes. shortly after this code executes both obj and child will be gc would have.
-
Script for garbage collection in Captivate 4 Widgets?
Hi guys and girls
I'm having a problem with some custom widgets that I made. I have a number of widgets on every slide in my project (which are reused on each slide) and they work fine... BUT I noticed that when the project is published and played the executable starts eats more RAM. I noticed that the EXE eats more RAM at the beginning of each slide and never decreases.
I think what is happening is that even though im using the same widget on each slide, Captivate load a new instance of the widget to each new slide and no garbage collection on the previous slide widgets. Does anyone know of an ActionScript command in order to solve this problem? Or a work around?
A question for adobe... Do you know the guys on this problem? and if yes, do you intend to fix in an update?
See you soon
Aquil0
Hi Aquilo,
The reason for the consumption of RAM is usually because something in your code has not been unloaded, always raises an event or a timer still work and Captivate continues to run and store it in memory, despite a change of the slide or the off-screen image disappear.
Best option is to add a feature to "unload" to your flash widget that will destroy everything.
Here is an example applied to a loader (Actionscript 3) object
loader.addEventListener (Event.UNLOAD, unLoadHandler);
function unLoadHandler(event:Event):void {}
Kill the charger
var loader: Loader = Loader (event.target);
Loader.Unload ();
Charger = null;Remove event listeners
this.removeEventListener ("onEnterFrame", onEnterFrame);
this.loader.removeEventListener (Event.UNLOAD, unLoadHandler);Stop all timers
Timer.Stop ();
}Note how I put the "loader", NULL, after unloading it - this will ensure it comes out of the memory, as Flash Player 9 has an error where it won't completely remove something of memory, although it is being unloaded.
Hope that helps.
-
How do I know when the garbage collector/timer icon is active
Hello
I want to listen to changes on the phone screen, I saw peter made a suggestion in another thread a couple of years ago which resulted in using locateDfference, however, it signals a potential hole in his suggestion where, in the case where the display of the icon of the timer - the screen is constantly evolving but doesn't not really relevant to the screen are underway only the flag icon and network timer trigger changes.
I'm now trying to fill the holes, my code detects the difference of bitmaps of the screenshots, the code works, but when the garbage collertor is active it triggers a change detected in my code.
I think the easiest option is to ask the api is the garbage collector active - I printed visible applications and the garbage collector is never one of them, but I do not see that the processid is changing all the time and then maybe one of these processid I see in the console is the collecvtor of garbage and I can detect when it is active - does anyone know if I can find the processid of the garbage collector, or listen to it comes to about (the timer icon display)?
If this is not possible then maybe if I can get a proper report to the timer by screen size then I can work around the icon.
Any suggestions how to overcome my problems are welcome.
Thank you.
It's a shame... Like Simon, I'm n0t aware of a way to detect that the gc is running or display the icon, sorry.
Maybe you are looking for
-
I bought a 15-p074tx here in China Chengdu Pavilion because my former lodge is to take a permanent cat NAP. The new computer had Winbdows 8 version Chinese so I had to install my Windows 7 Professional. Then, I got to come here and reload all the dri
-
What kind of Raw we are capture?
Ask yourself what kind of Raw is saved from camera to recorder AXS - R5? Is the sensor-> exit process 14 bit AD converter? Y at - it a log curve applied before writing on storage cards? How much compression is applied before writing on storage cards?
-
I have a Hp laptop, 2000 but I neeed to access the bios and I do not know the password the error I get is the following code. 85280672 Help
-
My laptop is equipped with a webcam. How to activate it?
I use Windows 7, Vista. I went into Device Manager, and it's in the list under imaging with my printer devices. Knowing just enough about computers to get me in trouble, I would like to get some tips on how to use or to allow him. Somehow, I get thi
-
Notification e-mail blackBerry Q10 No. sound
Hello I recently received a Q10 of my new employer to follow my emails and the problem is that the phone does not make any sound when receive emails bllinking not without vibrations also LED. all settings are fine and I'm 100% sure then do not ask me