Home > Net >  Programs written in c #, users reflect on card slowly around two hours
Programs written in c #, users reflect on card slowly around two hours

Time:11-12

Programs written in c #, the user use about two hours to reflect on card slowly

Check for a few days, and could not find the reason, o

If we can carefully the reward point guidance to solve,

CodePudding user response:

See the task manager, ran out of what

CodePudding user response:

Please describe in detail, with the programmer slang is "of the code to let the cat" -- -- -- -- -- what?

CodePudding user response:

When a card is slow, memory footprint 120 m or so

CodePudding user response:

Hierarchical communication mechanism, according to the system logs (including statistics, such as average, information), to analyze actual service speed changes, and then look at the source code, in regression testing on a large number of "real raw data",

CodePudding user response:

"120 MB of memory is nothing", somebody else database system of 10 G memory also have no matter son, which one of the key is your own program function card is slow,

CodePudding user response:

Suggest that the original poster to each function operation how long does it take to add logs

CodePudding user response:

Your description of your software first,

CodePudding user response:

Visit vba is evidently a memory leak, especially webbrowser these, had better use double process, operation process, with the closed method

CodePudding user response:

refer to the eighth floor of guiyang horse Ma Shanfu plugging waterproof engineering professional maintenance of swimming pool response:
well, it seems that is a memory leak, especially to visit vba, webbrowser these, had better use the double process, operation process, with the close method


Memory leaks what tools can be detected
?

Can you test to check the form or function methods

CodePudding user response:

references on 7th floor is wrath of god reply:
you describe your software first,


Software is the fruit store cashier I use software that is scanning, or touch screen click + soft keyboard to retrieve, member to retrieve, prepaid phone, sweep code collection, settlement printing, inside a lot more with multithreading

CodePudding user response:

It is possible that brought down the hardware software

CodePudding user response:

If the memory is 120 m, it should almost can eliminate the memory leak problem, and are likely to be high CPU usage, can try to use procexplorer tools to check the software runs bottleneck mainly in where

CodePudding user response:

To have a look at where is slow?

CodePudding user response:

You multithreading management well, if every time open multiple threads, but haven't end thread, the program does not slow to blame, you this is certainly a multithreaded issues, you track your code
Thread can block or waiting in line

CodePudding user response:

Should be a thread blocking or beyond,

CodePudding user response:

Can use vs own performance analysis tools for memory usage analysis, which can locate the memory process or object is too large, the key to the appropriate code or object creation process are analyzed.

CodePudding user response:

Suggest using.net Memory Profiler Memory monitoring tool to check, the object, variable Memory did not release,

CodePudding user response:

Have help guide which master can help to solve this problem, reward,

CodePudding user response:

First task manager to see the process of memory and CPU usage, check if your program has a problem
Reconfirm all operations are slow? Or some operations will slow

CodePudding user response:

In a word, the answer depends on Mongolian

CodePudding user response:

You have no test, debug various aspects, this problem will not be able to judge, not to say that man is dedicated to the BBS of plagiarism, not really discuss the destroyer of technology, but you done itself no reports will diagnose and kung fu,

CodePudding user response:

references to the tenth floor eliuren response:
my software is fruit store cashier to use software that is scanning, soft keyboard or touch screen click + to retrieve items, member to retrieve, prepaid phone, sweep code collection, settlement printing and so on, a lot more with multithreading


You can check your so-called "multithreaded programming model whether there is a fundamental problem,

CodePudding user response:

The most basic, carefully break down their own system of high-level message communication mechanism, for each log message handling of tasks, including statistical information, time and tasks and then manual inspection log, and see if this manual operation "of the existence of chaos and repeat operation,

CodePudding user response:

Commodity information is the same in a certain period of time, can be cached, retrieved from the database, every time a lot of multi-threading do what use, cashier usually come one by one, consider more actual usage scenarios, avoid excessive design,
  •  Tags:  
  • C#
  • Related