Avatar of Camillia
CamilliaFlag for United States of America asked on

Is this bad performance?

I have  web app and I used RedGate's ANTS profiler to look at the memory.

for System.String class, it shows 185,246 bytes of memory (the size of lve object stored in managed heap).

I use  lot of what.toString(). Is this the cause of it and is this size even bad for performance?
C#

Avatar of undefined
Last Comment
figroc

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
figroc

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
Camillia

is that 185,246 because of system.string?

% Time in GC...not sure of RedGate had that but let me see. are you talking bout RedGate profiler?
figroc

I am saying performance monitor provided by windows os. You can access it by start "perfmon.msc".
ASKER
Camillia

oh, let me look. I'm using RedGate. Let me look into that. I remember I used that 2 yrs ago.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
SOLUTION
Hendo1973

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
Camillia

i have stringBuilder , will look at string contact in the code just to make sure, thanks.
ASKER
Camillia

figroc:  I ran the RedGate profiler again and there's  column:
The number of garbage collections that have occured since the object was created".

The value for example, is 33 and points to system.String.

Do you know anything about this?
figroc

I am not very familiar with RedGate profiler. I think it means that, since the startup of application, the GC has totally occur 33 times. That does not mean anything, I suppose.
What is the truely problem with your application? Would you desribe it roughly?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.