QB64 Phoenix Edition
MyBB Memory Leak? - Printable Version

+- QB64 Phoenix Edition (https://staging.qb64phoenix.com)
+-- Forum: Chatting and Socializing (https://staging.qb64phoenix.com/forumdisplay.php?fid=11)
+--- Forum: General Discussion (https://staging.qb64phoenix.com/forumdisplay.php?fid=2)
+--- Thread: MyBB Memory Leak? (/showthread.php?tid=1689)

Pages: 1 2


RE: MyBB Memory Leak? - mnrvovrfc - 05-16-2023

(05-16-2023, 12:19 AM)Kernelpanic Wrote: Seriously, you remind me of the Linuxboys who boasted that they hadn't switched off their computers for x months.

I'm sorry if I come across as "fanboi" or "fangurl" for Linux.

But I joined another technical forum where someone was going on and on about being part of a development project where he needed to run multiple instances of Firefox, as many as 15 tabs and even though he had 16GB RAM, his computer couldn't keep up.

But it's not related to someone else on a different forum I belong to, who was banned for insulting other people, only because he didn't like the proposal given to him to shut down his computer even for a little while and take it easy with his equipment. Because he had it on for many days at a time and he kept complaining about how KDE Plasma bogged down in performance. His computer was running quite hot too, and it wasn't set up correctly to use a "swap" file or partition.

Some of you guys are rich and could keep your equipment on all day and for months and years. But I cannot.

I have tried to, so I could go further with the calculations for the most interesting 19-digit prime numbers, was trying to look for a palindrome LOL. I wrote a QB64 program that waited a predetermined amount of time before launching another program. I made sure this calculation program would take no more than ten minutes to finish its duty, processing a thousand values or so. I had this program then being started every ten minutes by the other program. Because I didn't like the function in Windows to do that, too complicated to set up. I had this going for about two weeks before I believed I was causing damage to my equipment. A few months later its monitor was punched from inside, still trying to figure out how it happened precisely and had to send it for repair. Had to wait the whole Christmas and New Year's 2022 and more to get it back.


RE: MyBB Memory Leak? - Kernelpanic - 05-16-2023

With a server this is of course something different than with a home computer. I don't think it's a good thing if the computer is not shut down for umpteen days. As far as I know, the system is cleaned when the system is completely shut down.

With Linux, I always started KDE from the command line and also shut it down like this: shutdown -h now

On Windows (10) I do it exactly like this: C:\Windows\System32\shutdown.exe /s /t 0
I have an icon for this on my desktop.

[Image: Shutdown-Windows.jpg]


RE: MyBB Memory Leak? - Ultraman - 05-24-2023

KiloManjaro, I don't know if we need to be snarky about people leaving computers on. I will say, however, that leaving a browser open for weeks is probably not a good thing, regardless of operating system. I leave my PC up 24/7 and only restart for updates or whatever. But the only program I'm leaving open is AnyDesk so I can remote in whenever I want. I don't think it is a matter of being "rich" as you put it. I am far from it. I'm pretty sure Terry is also not "rich".

Also, Task Scheduler is quite easy to set up in Windows.


RE: MyBB Memory Leak? - TerryRitchie - 05-30-2023

I have an update about the Firefox memory leak. Version 112.0.1 introduced a memory leak bug that only happens under certain conditions: You have an animated theme active and the browser is minimized. I never use anything but the standard theme so this didn't seem to apply to me.

Upon further investigation is was suggested that I may have a corrupt profile. Creating a new profile seems to have corrected the leak I am having. Here is how to create a new profile in Firefox:

- First, back up your bookmarks: Bookmarks -> Manage Bookmarks -> Import and Backup -> Backup
- If you have many extension loaded take a screen shot of them so you have a list to reference when reinstalling them into the new profile.
- Create a new shortcut on your desktop with the following string in the location of the item box:
  - "C:\Program Files\Mozilla Firefox\firefox.exe" -ProfileManager
  - Call the new shortcut "FireFox Profile Manager
- Use the new shortcut to start the profile manager
- Click on Create Profile (a new profile named Default User will be created. Use as-is or rename it if you like)
- Click on Default User in the list (or what you renamed it to) and then click on Start Firefox

Firefox will now start as if it were just freshly installed. You'll need to go through the settings and change them to your preferences and add the extensions you use again (refer to your screen shot to remember which ones).

To load your bookmarks back in:
- Bookmarks -> Manage Bookmarks -> Import and Backup -> Restore -> Choose file...
- Browse to the file you previously saved your bookmarks to

Creating a new profile has also greatly reduced the memory footprint Firefox uses on my system when first started.

If you decide you want to use your old profile again simply start the Firefox Profile Manager using the shortcut you created and choose your old profile from the list.


RE: MyBB Memory Leak? - SMcNeill - 05-30-2023

How the heck can a profile lead to a memory leak?  Good Lord, I never would've guessed something like that to be the issue in a million years!  O-o!


RE: MyBB Memory Leak? - TerryRitchie - 05-31-2023

(05-30-2023, 01:49 PM)SMcNeill Wrote: How the heck can a profile lead to a memory leak?  Good Lord, I never would've guessed something like that to be the issue in a million years!  O-o!

Me neither but it was suggested by a few people on the Mozilla forum that said it was a known issue. So far, so good.


RE: MyBB Memory Leak? - grymmjack - 06-03-2023

(05-30-2023, 12:42 PM)TerryRitchie Wrote: I have an update about the Firefox memory leak. Version 112.0.1 introduced a memory leak bug that only happens under certain conditions: You have an animated theme active and the browser is minimized. I never use anything but the standard theme so this didn't seem to apply to me.

---8<---

Creating a new profile has also greatly reduced the memory footprint Firefox uses on my system when first started.

Glad to hear it!

I updated the forum software last night to the latest. We'll be updating often to keep things secure and fresh.

Same with wiki.

Thanks for closing the loop!