🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9270

Re: Thread and memory

#9270
From: Sara T.
Date: Wed, 21 Jul 2004 11:01
22 lines
2124 bytes
> That seems bad to me. This is a server, right?
> What happens to the number of running threads if requests come in
> faster than the database can process them?
> How many thousands of threads can the server handle without slowing
> down, and making the problem worse?
>>>> In fact, I limit the maximum of queue count is 16. There are no more 16
threads running at the cycle.
>
> >I observe again and fould usually Virtual Memory has nerver been
decreased.
> >it takes 500MB and adding a Physical Memory 350 MB, that's all around
1GB.
> >It makes a resource of the machine unusually and found the error "Thread
> >creation error: Not enough storage is available to process this command"
>
> Hmmm.. You have a Sleep(200) after update database, but before
> termination.
> How many more threads have you started while that thread is sleeping?

Sleep just 200 milliseconds, I thought that is enough and may make my
application more stable. But I can remove it out if is is not exactly
neccessary.
Technical Details
Message-ID: <40fe4c73@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40fb3d08@newsgroups.borland.com> <40fbf87b$1@newsgroups.borland.com> <40fbfd74$1@newsgroups.borland.com> <40fc1022$1@newsgroups.borland.com> <40fcab00@newsgroups.borland.com> <40fcb75c$1@newsgroups.borland.com> <40fcc5b3@newsgroups.borland.com> <u40rf05v2pj1pbah8j3l3pc68h0trirkcj@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d35c53850c011fac
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Sara T." <sarana@infoquest.co.th>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40fb3d08@newsgroups.borland.com> <40fbf87b$1@newsgroups.borland.com> <40fbfd74$1@newsgroups.borland.com> <40fc1022$1@newsgroups.borland.com> <40fcab00@newsgroups.borland.com> <40fcb75c$1@newsgroups.borland.com> <40fcc5b3@newsgroups.borland.com> <u40rf05v2pj1pbah8j3l3pc68h0trirkcj@4ax.com>
Subject: Re: Thread and memory
Date: Wed, 21 Jul 2004 18:01:05 +0700
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 169.210.34.33
Message-ID: <40fe4c73@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090407539 169.210.34.33 (21 Jul 2004 03:58:59 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail