473,394 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Performance slows down gradually

Is there anyone who can help me with this:

I have written a fairly complicated vb application of hydrological
model that does a lot of number crunching. The model creates a set of
object variables before entering the main loop and then main
calculations are done within the main loop using the object variables
previously created. The application starts off with pretty good
performance. But, after a while, it starts to slow down gradually to
an unbearable point. In a suspision that file accesses might be
causing the problem, I turn off the file writing, but no improvements.
Has anyone experienced similar problem? Any insight would be very much
appreciated.

Thanks,

Chris
Nov 20 '05 #1
9 1747
Shot in the dark but . . .

This may be a memory issue ( either disk or physical memory ) . If your
program is creating huge quantities of new objects and waiting for the
garbage collector to come along and remove them, it may be that you are
using up your physical memory and swaping out to disk.

Try closing down all other open applications if applicable and see of this
makes any difference, ( check your physical memory when you get the go
slow ), if neccesary, put more memory in or start changing your code to
delete objects once ur done with them.
Regards - OHM


cow3 wrote:
Is there anyone who can help me with this:

I have written a fairly complicated vb application of hydrological
model that does a lot of number crunching. The model creates a set of
object variables before entering the main loop and then main
calculations are done within the main loop using the object variables
previously created. The application starts off with pretty good
performance. But, after a while, it starts to slow down gradually to
an unbearable point. In a suspision that file accesses might be
causing the problem, I turn off the file writing, but no improvements.
Has anyone experienced similar problem? Any insight would be very much
appreciated.

Thanks,

Chris

Nov 20 '05 #2
NuMega has a free profiler tool at :

http://www.compuware.com/products/de...evPartner&sf=1

This community edition profiler is free and provides a great picture of what
you code is doing...

Adios,

January

"cow3" <co**@hotmail.com> wrote in message
news:37*************************@posting.google.co m...
Is there anyone who can help me with this:

I have written a fairly complicated vb application of hydrological
model that does a lot of number crunching. The model creates a set of
object variables before entering the main loop and then main
calculations are done within the main loop using the object variables
previously created. The application starts off with pretty good
performance. But, after a while, it starts to slow down gradually to
an unbearable point. In a suspision that file accesses might be
causing the problem, I turn off the file writing, but no improvements.
Has anyone experienced similar problem? Any insight would be very much
appreciated.

Thanks,

Chris

Nov 20 '05 #3
OHM,

Thanks very much for your advice...
It seems I didn't explain very well about my problem :(
When my model slows down, even when it becomes VERY slow, the memory
usage of the process doesn't fluctuate too much - almost same from the
beginng till I kill it (I cannot stand it!). As there is about 200MB
of free memory, I don't think it is a memory deficit problem. As I
said, it doesn't access the disk either. So I feel I'm left in a
complete darkness not knowing where to dig!

Thanks,
Chris

"One Handed Man" <Bo****@Duck.net> wrote in message news:<bp**********@hercules.btinternet.com>...
Shot in the dark but . . .

This may be a memory issue ( either disk or physical memory ) . If your
program is creating huge quantities of new objects and waiting for the
garbage collector to come along and remove them, it may be that you are
using up your physical memory and swaping out to disk.

Try closing down all other open applications if applicable and see of this
makes any difference, ( check your physical memory when you get the go
slow ), if neccesary, put more memory in or start changing your code to
delete objects once ur done with them.
Regards - OHM


cow3 wrote:
Is there anyone who can help me with this:

I have written a fairly complicated vb application of hydrological
model that does a lot of number crunching. The model creates a set of
object variables before entering the main loop and then main
calculations are done within the main loop using the object variables
previously created. The application starts off with pretty good
performance. But, after a while, it starts to slow down gradually to
an unbearable point. In a suspision that file accesses might be
causing the problem, I turn off the file writing, but no improvements.
Has anyone experienced similar problem? Any insight would be very much
appreciated.

Thanks,

Chris

Nov 20 '05 #4
This is a little bit difficult without more information.

Basic Questions. . .

1.) Is the application accessing a remote service ( Such as an SQL server ),
if so is it waiting for a response ?

2.) Are you using remote disk letter assignments or URL's
\\servername\share\directory etc ?

3.) Is this only on your machine or does the application fail on another
machine also ?
Other than that, if the application is not to large, you could post either
that ( zipped ) or your code segment which is causing the problem and maybe
we could take a closer look.
Regards - OHM



cow3 wrote:
OHM,

Thanks very much for your advice...
It seems I didn't explain very well about my problem :(
When my model slows down, even when it becomes VERY slow, the memory
usage of the process doesn't fluctuate too much - almost same from the
beginng till I kill it (I cannot stand it!). As there is about 200MB
of free memory, I don't think it is a memory deficit problem. As I
said, it doesn't access the disk either. So I feel I'm left in a
complete darkness not knowing where to dig!

Thanks,
Chris

"One Handed Man" <Bo****@Duck.net> wrote in message
news:<bp**********@hercules.btinternet.com>...
Shot in the dark but . . .

This may be a memory issue ( either disk or physical memory ) . If
your program is creating huge quantities of new objects and waiting
for the garbage collector to come along and remove them, it may be
that you are using up your physical memory and swaping out to disk.

Try closing down all other open applications if applicable and see
of this makes any difference, ( check your physical memory when you
get the go slow ), if neccesary, put more memory in or start
changing your code to delete objects once ur done with them.
Regards - OHM


cow3 wrote:
Is there anyone who can help me with this:

I have written a fairly complicated vb application of hydrological
model that does a lot of number crunching. The model creates a set
of object variables before entering the main loop and then main
calculations are done within the main loop using the object
variables previously created. The application starts off with
pretty good performance. But, after a while, it starts to slow down
gradually to an unbearable point. In a suspision that file accesses
might be causing the problem, I turn off the file writing, but no
improvements. Has anyone experienced similar problem? Any insight
would be very much appreciated.

Thanks,

Chris

Nov 20 '05 #5
At this stage, my model is designed to run on a PC and no
communications with other PCs or access to network disks/DBs is
implemented. My instinct is that it might be something to do with the
garbage collection, but do not know how to check :(
The code is pretty large - over 4000 lines - so it is not appropriate
to be posted in here and I am not sure if I am allowed to do so.
Thanks,
Chris

"One Handed Man" <Bo****@Duck.net> wrote in message news:<bq**********@hercules.btinternet.com>...
This is a little bit difficult without more information.

Basic Questions. . .

1.) Is the application accessing a remote service ( Such as an SQL server ),
if so is it waiting for a response ?

2.) Are you using remote disk letter assignments or URL's
\\servername\share\directory etc ?

3.) Is this only on your machine or does the application fail on another
machine also ?
Other than that, if the application is not to large, you could post either
that ( zipped ) or your code segment which is causing the problem and maybe
we could take a closer look.
Regards - OHM



cow3 wrote:
OHM,

Thanks very much for your advice...
It seems I didn't explain very well about my problem :(
When my model slows down, even when it becomes VERY slow, the memory
usage of the process doesn't fluctuate too much - almost same from the
beginng till I kill it (I cannot stand it!). As there is about 200MB
of free memory, I don't think it is a memory deficit problem. As I
said, it doesn't access the disk either. So I feel I'm left in a
complete darkness not knowing where to dig!

Thanks,
Chris

"One Handed Man" <Bo****@Duck.net> wrote in message
news:<bp**********@hercules.btinternet.com>...
Shot in the dark but . . .

This may be a memory issue ( either disk or physical memory ) . If
your program is creating huge quantities of new objects and waiting
for the garbage collector to come along and remove them, it may be
that you are using up your physical memory and swaping out to disk.

Try closing down all other open applications if applicable and see
of this makes any difference, ( check your physical memory when you
get the go slow ), if neccesary, put more memory in or start
changing your code to delete objects once ur done with them.
Regards - OHM


cow3 wrote:
Is there anyone who can help me with this:

I have written a fairly complicated vb application of hydrological
model that does a lot of number crunching. The model creates a set
of object variables before entering the main loop and then main
calculations are done within the main loop using the object
variables previously created. The application starts off with
pretty good performance. But, after a while, it starts to slow down
gradually to an unbearable point. In a suspision that file accesses
might be causing the problem, I turn off the file writing, but no
improvements. Has anyone experienced similar problem? Any insight
would be very much appreciated.

Thanks,

Chris

Nov 20 '05 #6
Yes, 4000 lines is rather large, is it not ?

I suggest then that you read up on garbage collection and examine your code.
Try and think of a way of sectioning your code so as to test various
classes/modules to see if you can establish the culprit.

I know this is not any direct help, but at the end of the day it is a
process of elimination which will get you the answer to this conundrum.

Let us know how you proceed and if we can be of any specific help along the
way.
Regards - OHM


cow3 wrote:
At this stage, my model is designed to run on a PC and no
communications with other PCs or access to network disks/DBs is
implemented. My instinct is that it might be something to do with the
garbage collection, but do not know how to check :(
The code is pretty large - over 4000 lines - so it is not appropriate
to be posted in here and I am not sure if I am allowed to do so.
Thanks,
Chris

"One Handed Man" <Bo****@Duck.net> wrote in message
news:<bq**********@hercules.btinternet.com>...
This is a little bit difficult without more information.

Basic Questions. . .

1.) Is the application accessing a remote service ( Such as an SQL
server ), if so is it waiting for a response ?

2.) Are you using remote disk letter assignments or URL's
\\servername\share\directory etc ?

3.) Is this only on your machine or does the application fail on
another machine also ?
Other than that, if the application is not to large, you could post
either that ( zipped ) or your code segment which is causing the
problem and maybe we could take a closer look.
Regards - OHM



cow3 wrote:
OHM,

Thanks very much for your advice...
It seems I didn't explain very well about my problem :(
When my model slows down, even when it becomes VERY slow, the memory
usage of the process doesn't fluctuate too much - almost same from
the beginng till I kill it (I cannot stand it!). As there is about
200MB of free memory, I don't think it is a memory deficit problem.
As I said, it doesn't access the disk either. So I feel I'm left in
a complete darkness not knowing where to dig!

Thanks,
Chris

"One Handed Man" <Bo****@Duck.net> wrote in message
news:<bp**********@hercules.btinternet.com>...
Shot in the dark but . . .

This may be a memory issue ( either disk or physical memory ) . If
your program is creating huge quantities of new objects and waiting
for the garbage collector to come along and remove them, it may be
that you are using up your physical memory and swaping out to disk.

Try closing down all other open applications if applicable and see
of this makes any difference, ( check your physical memory when you
get the go slow ), if neccesary, put more memory in or start
changing your code to delete objects once ur done with them.
Regards - OHM


cow3 wrote:
> Is there anyone who can help me with this:
>
> I have written a fairly complicated vb application of hydrological
> model that does a lot of number crunching. The model creates a set
> of object variables before entering the main loop and then main
> calculations are done within the main loop using the object
> variables previously created. The application starts off with
> pretty good performance. But, after a while, it starts to slow
> down gradually to an unbearable point. In a suspision that file
> accesses might be causing the problem, I turn off the file
> writing, but no improvements. Has anyone experienced similar
> problem? Any insight would be very much appreciated.
>
> Thanks,
>
> Chris

Nov 20 '05 #7
January,
Wow, this is a great tool and I cannot believe it is free!
Thousand times thanks ;)
Chris

"January Smith" <ja*****@texas.net> wrote in message news:<eA**************@TK2MSFTNGP11.phx.gbl>...
NuMega has a free profiler tool at :

http://www.compuware.com/products/de...evPartner&sf=1

This community edition profiler is free and provides a great picture of what
you code is doing...

Adios,

January

"cow3" <co**@hotmail.com> wrote in message
news:37*************************@posting.google.co m...
Is there anyone who can help me with this:

I have written a fairly complicated vb application of hydrological
model that does a lot of number crunching. The model creates a set of
object variables before entering the main loop and then main
calculations are done within the main loop using the object variables
previously created. The application starts off with pretty good
performance. But, after a while, it starts to slow down gradually to
an unbearable point. In a suspision that file accesses might be
causing the problem, I turn off the file writing, but no improvements.
Has anyone experienced similar problem? Any insight would be very much
appreciated.

Thanks,

Chris

Nov 20 '05 #8
Did this help resolve your issues ?

Regards - OHM
cow3 wrote:
January,
Wow, this is a great tool and I cannot believe it is free!
Thousand times thanks ;)
Chris

"January Smith" <ja*****@texas.net> wrote in message
news:<eA**************@TK2MSFTNGP11.phx.gbl>...
NuMega has a free profiler tool at :

http://www.compuware.com/products/de...evPartner&sf=1
This community edition profiler is free and provides a great picture
of what you code is doing...

Adios,

January

"cow3" <co**@hotmail.com> wrote in message
news:37*************************@posting.google.co m...
Is there anyone who can help me with this:

I have written a fairly complicated vb application of hydrological
model that does a lot of number crunching. The model creates a set
of object variables before entering the main loop and then main
calculations are done within the main loop using the object
variables previously created. The application starts off with
pretty good performance. But, after a while, it starts to slow down
gradually to an unbearable point. In a suspision that file accesses
might be causing the problem, I turn off the file writing, but no
improvements. Has anyone experienced similar problem? Any insight
would be very much appreciated.

Thanks,

Chris

Nov 20 '05 #9
Well, not yet. But I am sure this tool will be of a great help to
pinpoint my problem.
Thanks,
Chris
"One Handed Man" <Bo****@Duck.net> wrote in message news:<bq**********@hercules.btinternet.com>...
Did this help resolve your issues ?

Regards - OHM
cow3 wrote:
January,
Wow, this is a great tool and I cannot believe it is free!
Thousand times thanks ;)
Chris

"January Smith" <ja*****@texas.net> wrote in message
news:<eA**************@TK2MSFTNGP11.phx.gbl>...
NuMega has a free profiler tool at :

http://www.compuware.com/products/de...evPartner&sf=1
This community edition profiler is free and provides a great picture
of what you code is doing...

Adios,

January

"cow3" <co**@hotmail.com> wrote in message
news:37*************************@posting.google.co m...
Is there anyone who can help me with this:

I have written a fairly complicated vb application of hydrological
model that does a lot of number crunching. The model creates a set
of object variables before entering the main loop and then main
calculations are done within the main loop using the object
variables previously created. The application starts off with
pretty good performance. But, after a while, it starts to slow down
gradually to an unbearable point. In a suspision that file accesses
might be causing the problem, I turn off the file writing, but no
improvements. Has anyone experienced similar problem? Any insight
would be very much appreciated.

Thanks,

Chris

Nov 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Gerald Khin | last post by:
I encountered a performance problem with UPDATE statement and foreign key constraints. There are two tables involved: A parent table A and a child table B: create table A( ID CHAR(15) NOT...
3
by: Rolan | last post by:
To those that have been around Access long enough, I'm sure that insight can be shared as to what aspects of computer processing speed improves its performance. Perhaps in some respects even...
13
by: bjarne | last post by:
Willy Denoyette wrote; > ... it > was not the intention of StrousTrup to the achieve the level of efficiency > of C when he invented C++, ... Ahmmm. It was my aim to match the performance...
4
by: Cray | last post by:
Hello, On the database we have stored procedure that loads couple thousands rows with information, it has to be done sequentially because during this load various variables and values has to...
4
by: Jim Devenish | last post by:
I have converted an Access back-end to SQL Server back-end but am having some problems. The Access to Access application has been running well for some years. I have successfully copied all the...
5
by: Aykut Canturk | last post by:
Dear friends, I recently decided to move vb.net 2005 from vb6. my projects has average of 200 forms and 20 modules. I mostly write enterprise solution about production automation like...
6
by: jacc14 | last post by:
Good morning all. I have been working on a database for the past couple of weeks and it is pretty nippy. I have an ODBC link in there from another software program. Since splitting it and...
0
by: ccrocetti | last post by:
Hello, I am having some trouble with performance issues using ASP.NET. We have a single code-base that is used as a wrapper for multiple sites. The data for the site is populated from the...
10
by: colin | last post by:
Hi, I profile my code and find its spending a lot of time doing implicit conversions from similar structures. the conversions are mainly things like this class Point { implicit conversion...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.