发信人: kongzi (鸡龟骨滚羹), 信区: DotNet
标 题: Re: memory usage
发信站: Unknown Space - 未名空间 (Tue Oct 21 10:14:02 2003) WWW-POST
【 在 magicfat (魔法胖子) 的大作中提到: 】
: 【 在 kongzi (鸡龟骨滚羹) 的大作中提到: 】
: : well,in our case,a superserver costs 45M-55M memory,plus sometimes the
: : will create another process for report previewing on the fly which costs
: : memory.If there are some other companies' .net application running on the
: : machine,what would you expect.
: If not all of the applications are going to run actively at the same time,
: the memory of those idle ones will be swapped out.
: Besides, these days "super servers" can have 2G RAM, which can have almost
: of your report preview processes all in the memory at the same time.
You can not ask all the clients to purchase a 2G Ram machine.What you can do
is to optimize your program to fit in the clients' request before your boss
yells at you.:)
BTW,the report engine is only a tiny part of the superserver.This is just an
example here.Actually I encountered the memeory problem when I run a
stress-test of the report engine:Multiple threads generate hundreds of stand
alone report viewer processes simoutaneousely,and,of course you can imagine
what happened.:).But actually it's not a real problem for my system,coz in the
report engine we use the batch mode for previewing.But this just gave me a
thought about the memory usage in .net.
: If it actually gets to that point, I suspect it will be your CPU, not memory
: will become the bottleneck.
give us grace to accept with serenity the things that cannot be changed,
courage to change the things which should be changed and the wisdom to disti
nguish the one from the other.
※ 来源:．Unknown Space - 未名空间 mitbbs.com．[FROM: 199.3.]