Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9230693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:53:12+00:00 2026-06-18T05:53:12+00:00

I am observing the connection of mongoDB. when a new connction generated, I can

  • 0

I am observing the connection of mongoDB. when a new connction generated, I can see a new thread created ( pstack ·pgrep monnod| grep -c Thread), and some new chunks memory allocated (get from /proc/pgrep mongod`/maps), one of the chunk is 1024K, which should be the stack size for the new thread, I saw it was set to 1024k in the code.
when I exited this session, the No. of threads decrease by 1, but the memory still there. when I generate a new connection, these memory seems reused. so I guess it should be the behavior of linux Kernel.
Can I konw if I am right? and where is this feature well documented?
thanks for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:53:13+00:00Added an answer on June 18, 2026 at 5:53 am

    when I exited this session, the No. of threads decrease by 1, but the memory still there. when I generate a new connection, these memory seems reused. so I guess it should be the behavior of linux Kernel.

    This has nothing to do with the kernel.

    GLIBC will mmap thread stack, and has a cache of such stacks. The code is here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Today I started observing some new kind of error which does not allow me
How can i check/inspect the performance of some network application via observing the port
I'm building a Backbone application and I'm observing some behaviour I can't place. Consider
Hi I am writing a program that is dependent on time and observing some
Observing my application behavior in Android emulator, I see that EditText contents is preserved
I have some data which my program discovers after observing a few things about
I'm observing some strange behavior when using the F# interactive interpreter. Running the following
I am interested in knowing whether I can expect the observing object's method to
I am trying to get into ASM concepts and while observing the disassembly generated
’m observing a strange behavior from my application which I hope you can explain

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.