Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Regular Contributor
Posts: 83
Registered: ‎12-09-2010
My Device: Not Specified
Accepted Solution

Battery drain and Garbage collector?

[ Edited ]


Hello,

I've big problems with battery..

To analyze these battery problems, I've build 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 App during the battery drain was doing nothing more than before the drain. The app have no timer, and I've just created a new record in RMS at 21:11 and then the battery drain started (I haven't touch the device anymore after that).


Maybe I use a lot of memory but the battery drain never start at the same moment, and memory seems OK  and not different than when there is no battery drain.

There is no MemoryLeak because after Garbage collector I have the same amount of memory.


Is there in the OS a mechanism which can work when there is memory problem like GarbageCollector, or maybe it's not a memory problem, which could drain the battery like this? There is nothing strange in event log.


How can I have more informations like CPU, or anything else wich can help me determine what's happen.

I can't reproduce the problem  when I want and not on all my devices. We changes the batterry so it's not a battery problem.


The device is Linked to a BES and I've disable memorycleaner, wifi, bluetooth, otasync, etc.


I've tried with engineering screen but I was not able to look it during the battery drain...


I'm really lost and can't understand what's happen..

Please help me Smiley Sad


 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Battery drain and Garbage collector?

You should find that the device log gives you more information about what the device was actually doing.  I would monitor it before the drain time and after.  There is a limit to its size, so I would recommend that you run it in none draining mode, use javaloader to grab the log, then do the same again in draining mode.  You might also consider changing the logging level to say "Information", to get more details.

Regular Contributor
Posts: 83
Registered: ‎12-09-2010
My Device: Not Specified

Re: Battery drain and Garbage collector?

[ Edited ]

Hello,

Thanks for your response, here you can see my battery drain and my eventlog.

Everything seems normal except the battery drain :/.

Battery drain 25% in one hour and continue to drain Smiley SadSmiley Sad

 

For a better reading I post logs on pastebin :

 

Battery Log : http://pastebin.com/TnCy3kQJ

 

Blackberry EventLog : http://pastebin.com/V2yGcht3

 

Thanks for your help

 

 

 

Regular Contributor
Posts: 83
Registered: ‎12-09-2010
My Device: Not Specified

Re: Battery drain and Garbage collector?

Nobody can help me?

It's a really blocking issue for my client :/

Thanks

BlackBerry Development Advisor
Posts: 15,723
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Battery drain and Garbage collector?

Does the battery drain only occur when your application is present?  Have you tried removing it to see if the battery drain issues go away?  There could be something else triggering the battery drain.

 

An application that is just listening for the events you are logging above shouldn't have much of an affect on battery life.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Highlighted
Regular Contributor
Posts: 83
Registered: ‎12-09-2010
My Device: Not Specified

Re: Battery drain and Garbage collector?

I've just found the cause of the issue, it was a paint loop on a form which contain a custom textfield which repaint it's own container which repaint the textfield himself, etc.
I solved the problem with JDE 5.0 and its CPU view which help me to detect this issue.
Thanks for your help!