Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

memory-management

ASP.NET Website Memory Usage quite high

August 29, 2022 by Magenaut

I have an ASP.NET website that will hit about 2gb physical memory used within about 3-4 days, which to me sounds really bad. At the moment, I have configured IIS to restart the app pool process when it hits 500mb. I would like to try and track down the problem.

Categories ASP.NET, Q&A Tags .net, asp.net, memory-leaks, memory-management Leave a comment

Which Python memory profiler is recommended?

August 21, 2022 by Magenaut

Gives most details.

Categories Python, Q&A Tags memory-management, performance, profiling, python Leave a comment

How can I explicitly free memory in Python?

August 21, 2022 by Magenaut

I wrote a Python program that acts on a large input file to create a few million objects representing triangles. The algorithm is:

Categories Python, Q&A Tags memory, memory-management, python Leave a comment

Total memory used by Python process?

August 21, 2022 by Magenaut

Is there a way for a Python program to determine how much memory it’s currently using? I’ve seen discussions about memory usage for a single object, but what I need is total memory usage for the process, so that I can determine when it’s necessary to start discarding cached data.

Categories Python, Q&A Tags memory-management, python Leave a comment

Releasing memory in Python

August 21, 2022 by Magenaut

I have a few related questions regarding memory usage in the following example.

Categories Python, Q&A Tags memory-management, python Leave a comment

when does Python allocate new memory for identical strings?

August 19, 2022 by Magenaut

Two Python strings with the same characters, a == b,
may share memory, id(a) == id(b),
or may be in memory twice, id(a) != id(b).
Try

Categories Python, Q&A Tags memory, memory-management, python Leave a comment

Python memory leaks

August 19, 2022 by Magenaut

I have a long-running script which, if let to run long enough, will consume all the memory on my system. Without going into details about the script, I have two questions: Are there any “Best Practices” to follow, which will help prevent leaks from occurring? What techniques are there to debug memory leaks in Python? … Read more

Categories Python, Q&A Tags debugging, memory-leaks, memory-management, python Leave a comment

When are objects garbage collected in python?

August 18, 2022 by Magenaut

When are objects garbage collected in python? When is the memory released and does the collection impact performance? Can one opt out or tune the gc algorithm and if so how?

Categories Python, Q&A Tags garbage-collection, memory-management, python Leave a comment

Does Python have a stack/heap and how is memory managed?

August 17, 2022 by Magenaut

How are variables and memory managed in Python? Does it have a stack and a heap and what algorithm is used to manage memory? Given this knowledge are there any recommendations on memory management for large number/data crunching?

Categories Python, Q&A Tags memory, memory-management, python Leave a comment

What is the recommended way of allocating memory for a typed memory view?

August 17, 2022 by Magenaut

The Cython documentation on typed memory views list three ways of assigning to a typed memory view:

Categories Python, Q&A Tags buffer, cython, memory, memory-management, python Leave a comment
Older posts
Page1 Page2 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress