Memory leaks are only in our heads, there are none!!
- Patrick,
A question. But first -
I've always wondered about the wisdom of pulling a battery from an operating electronic device - not just the Blackberry. People claim it does no harm. You say it does, and I'm inclined to believe you. I surely don't pull the battery on my laptop unless there is absolutely no choice (naturally, my Windows laptop HAS made that necessary a couple of times).
Everyone talks about battery pulls being "necessary" on the Blackberry.
But, doesn't the key combo for " soft reset" (alt+right shift+delete) accomplish the same thing without the jolt to the electronics? Or, does the battery pull do something more - besides the obvious ability to reset a completely locked device?
Thanks for your help.07-17-08 07:54 AMLike 0 -
And, it is only once in a while that you'll trash memory with a pull resulting in a need to reinstall the OS - rare, but it's happened.
I surely don't pull the battery on my laptop unless there is absolutely no choice (naturally, my Windows laptop HAS made that necessary a couple of times).
Everyone talks about battery pulls being "necessary" on the Blackberry.
But, doesn't the key combo for " soft reset" (alt+right shift+delete) accomplish the same thing without the jolt to the electronics? Or, does the battery pull do something more - besides the obvious ability to reset a completely locked device?
Pressing that key combination actually pulls a voltage on one of the pins of the microprocessor to ground, which forces it to reset completely, meaning load the OS from scratch from the flash memory.
I'll try to write all this up on my site soon.07-17-08 08:07 AMLike 0 -
-
-
- Pete,
A battery pull does not invoke anything, it simple removes power and clears memory just like when you turn off the power on your PC.
Actually, there is so much mis-information in this thread that I'll probably write an article on my blog and put something in the Berrysoft wiki on this as I get time later this month.
What you need to know as a user is that what is reported as "File Free" is NOT the actual amount of memory available to your blackberry software. It is only that amount of memory which is currently free (not requiring garbage collection).
Things basically work like this... a program needs to create an object, so it asks the JVM (java virutal machine aka the OS) for some memory. The JVM allocates the needed memory from "the heap", and reduces the amount of "file free" reported. Sometime later, in a well behaved program, the object is destroyed and the memory is thus put on the curb waiting for the garbage collector to recover it. If available memory gets low, OR your device becomes idle, OR you manually invoke it (OS 4.5), the GC (garbage collector) gathers all the memory and returns it to the free store heap, thus increasing the "file free" reported.
Keep in mind that the JVM automatically looks after memory for you, and there is no need for you to do the sorts of things mentioned in this post. Why? Because, if you get low in memory, the JVM automatically will start to delete unnecessary things like your log, old emails, etc. In other words, there is no point whatsoever to manually clear your log, or pull your battery.
In fact, pulling your battery is actually harmful to the electronics, and you should ONLY do so if you have to (like the device is locked up).
I personally have NEVER pulled the battery on my personal 8820 - EVER!
Although we are really busy finalizing version 2 of the crackberry launcher, and our first release as well as launching all of our sites, you'll want to stay tuned to our blog, site, and eventually our wiki.
Things are really crazy right now for us as we setup the backend CRM, Project management, support desk, etc. in preparation for product launches, but I'm going to try to make time to post some cool content on the blog.07-17-08 08:57 AMLike 0 - This guy calls my family's thoughts as well as mine MIS-INFORMATION!!! For your information guy, we have a bunch of smart people on this site and for you to call anything they had to say MIS-INFORMATION, you're TOTALLY OUT OF LINE!!! All of us here explain different scenarios to each other but we have never called anyone MIS-INFORMED!!! I think you need to make an apology to all of us for your mockery!!
By the way, most of the "smart people on this site" agree with him.07-17-08 09:09 AMLike 0 - I think you need to switch to decaff. Saying someone is misinformed is hardly an insult. Calling someone stupid, idiotic, or dumb is an insult that deserves and apology. As a programmer, Patrick has knowledge on the subject that most of us don't have. So unless you and your family are programmers that can provide information that conflicts with his, his words are worth heeding.
By the way, most of the "smart people on this site" agree with him.07-17-08 09:20 AMLike 0 - I think you need to switch to decaff. Saying someone is misinformed is hardly an insult. Calling someone stupid, idiotic, or dumb is an insult that deserves and apology. As a programmer, Patrick has knowledge on the subject that most of us don't have. So unless you and your family are programmers that can provide information that conflicts with his, his words are worth heeding.
By the way, most of the "smart people on this site" agree with him.
If that's the case, explain to me why everyone's memory jumped sky high from doing that process than it would from a simple battery pull??????????? Better yet, if you don't know, ask Patrick to explain it!! All I know is a lot of my family in the BB community is happy and they did not do it from a SIMPLE battery pull!! Thing's that make you go hmmmm!!!
And, the event log should be automatically cleaned by your Berry anyhow if you are in need of memory. You should not manually have to clean it... and the event log would be cleared to free up memory before any messages or call logs!!07-17-08 09:27 AMLike 0 - Actually, when I first read this thread I tried it as well. Checked Status to view memory, cleared the log, checked Status again, no change, pulled battery, checked Status a third time, and my memory was exactly where it would normally be after doing a pull. I gained absolutley nothing by doing this.
Patrick has explained it. Here and other threads. I still don't get 100% of what he's saying, but I have gained a greater understanding of how it works. In fact, even he stated that yes, some memory is allocated to the log, which as I understand it is your main argument here. I'm not sure how him agreeing with you is an insult. I'm pretty sure the "misinformation" comment was directed at several posters here, and not towards you and your family.07-17-08 09:28 AMLike 0 - Actually, when I first read this thread I tried it as well. Checked Status to view memory, cleared the log, checked Status again, no change, pulled battery, checked Status a third time, and my memory was exactly where it would normally be after doing a pull. I gained absolutley nothing by doing this.
Patrick has explained it. Here and other threads. I still don't get 100% of what he's saying, but I have gained a greater understanding of how it works. In fact, even he stated that yes, some memory is allocated to the log, which as I understand it is your main argument here. I'm not sure how him agreeing with you is an insult. I'm pretty sure the "misinformation" comment was directed at several posters here, and not towards you and your family.07-17-08 09:50 AMLike 0 - Hold down the lower left key. It looks like a couple of arrows on my pearl. While holding that key type lglg. That will bring up the log. I usually do this from the home screen.
The Java VM doesn't release used memory very well when you close an app. A lot of OS have this issue to some extent. Especially if the application isn't written in such a way to try to release memory on objects it creates.
Posted from my CrackBerry at wapforums.crackberry.comLast edited by BostLabs; 07-17-08 at 09:55 AM.
07-17-08 09:51 AMLike 0 - Hold down the lower left key. It looks like a couple of arrows on my pearl. While holding that key type lglg. That will bring up the log. I usually do this from the home screen.
The Java VM doesn't release used memory very well when you close an app. A lot of OS have this issue to some extent. Especially if the application isn't written in such a way to try to release memory on objects it creates.
Posted from my CrackBerry at wapforums.crackberry.com07-17-08 10:09 AMLike 0 -
- The cap key is on the lower right on my pearl next to the return key. In text mode, like in the message, the alt key switches to number or upper placed characters like the comma and question mark.
No worries! I'm just trying to help like a lot of the others.
Posted from my CrackBerry at wapforums.crackberry.com07-17-08 10:22 AMLike 0 - Honestly, I had never even looked in that log before this, much less cleaned it. But that's beside the point. The point was that you called him out for something that isn't even an insult. I'm comfortable with the fact that he knows more about it than I, or most of us, do. I learn what I can to try to help others, but one of the most important things I've learned is that when someone comes along that knows more about something than I do, I need to shut up and listen.07-17-08 10:24 AMLike 0
-
This guy calls my family's thoughts as well as mine MIS-INFORMATION!!! For your information guy, we have a bunch of smart people on this site and for you to call anything they had to say MIS-INFORMATION, you're TOTALLY OUT OF LINE!!! All of us here explain different scenarios to each other but we have never called anyone MIS-INFORMED!!! I think you need to make an apology to all of us for your mockery!!
I think you need to switch to decaff. Saying someone is misinformed is hardly an insult. Calling someone stupid, idiotic, or dumb is an insult that deserves and apology. As a programmer, Patrick has knowledge on the subject that most of us don't have. So unless you and your family are programmers that can provide information that conflicts with his, his words are worth heeding.
By the way, most of the "smart people on this site" agree with him.
If that's the case, explain to me why everyone's memory jumped sky high from doing that process than it would from a simple battery pull??????????? Better yet, if you don't know, ask Patrick to explain it!! All I know is a lot of my family in the BB community is happy and they did not do it from a SIMPLE battery pull!! Thing's that make you go hmmmm!!!
Honestly, I had never even looked in that log before this, much less cleaned it. But that's beside the point. The point was that you called him out for something that isn't even an insult. I'm comfortable with the fact that he knows more about it than I, or most of us, do. I learn what I can to try to help others, but one of the most important things I've learned is that when someone comes along that knows more about something than I do, I need to shut up and listen.07-17-08 10:43 AMLike 0 - I have to say I'm confused by all the conflicting info on this thread.
The idea fascinated me, so I followed Apollo's instructions including the battery pull. I went from 21mb free to 24mb free.
Obviously I had plenty of free memory without doing this, but I was surprised how full my log was and how much memory I recovered since I have only had my phone less than a month and am a relatively light user.
I am not sure when to repeat the procedure, and am especially unsure about the battery pull part given some of the posts here.07-17-08 10:57 AMLike 0 - Honestly, I had never even looked in that log before this, much less cleaned it. But that's beside the point. The point was that you called him out for something that isn't even an insult. I'm comfortable with the fact that he knows more about it than I, or most of us, do. I learn what I can to try to help others, but one of the most important things I've learned is that when someone comes along that knows more about something than I do, I need to shut up and listen.07-17-08 10:59 AMLike 0
- I have to say I'm confused by all the conflicting info on this thread.
The idea fascinated me, so I followed Apollo's instructions including the battery pull. I went from 21mb free to 24mb free.
Obviously I had plenty of free memory without doing this, but I was surprised how full my log was and how much memory I recovered since I have only had my phone less than a month and am a relatively light user.
I am not sure when to repeat the procedure, and am especially unsure about the battery pull part given some of the posts here.
And I agree that this thread has conflicting info Just read what Patrick says, he is the most knowledgeable!07-17-08 11:01 AMLike 0 - The cap key is on the lower right on my pearl next to the return key. In text mode, like in the message, the alt key switches to number or upper placed characters like the comma and question mark.
No worries! I'm just trying to help like a lot of the others.
Posted from my CrackBerry at wapforums.crackberry.com
Posted from my CrackBerry at wapforums.crackberry.com07-17-08 11:01 AMLike 0 - I have to say I'm confused by all the conflicting info on this thread.
The idea fascinated me, so I followed Apollo's instructions including the battery pull. I went from 21mb free to 24mb free.
Obviously I had plenty of free memory without doing this, but I was surprised how full my log was and how much memory I recovered since I have only had my phone less than a month and am a relatively light user.
I am not sure when to repeat the procedure, and am especially unsure about the battery pull part given some of the posts here.
Posted from my CrackBerry at wapforums.crackberry.com07-17-08 11:20 AMLike 0
- Forum
- Popular at CrackBerry
- General BlackBerry News, Discussion & Rumors
Memory leaks are only in our heads, there are none!!
LINK TO POST COPIED TO CLIPBOARD