I wrote a Visual Basic .NET application in Visual Studio to parse MS Powerpoint and Word Files, transform slides to jpgs and to store the content in ElasticSearch. I want to ensure that when parsing a shared network drive that neither the server or my client dramatically slow down. How can I monitor the execution and adapt the processing accordingly? Any basic techniques to get me started?
1
There are 1 best solutions below
Related Questions in .NET
- Does compiler optimize operation on const variable and literal const number?
- What is the point of definnig Asp.net Intrinsic Objects In different places and what is the different betwen them?
- Deleting Orphans with Fluent NHibernate
- IOrderedEnumerable to vb.net IOrderedEnumerable Conversion
- What is this namespace ITypeOfObjectsBoundToListBox ? Couldn't find it
- .net rest service with JSON string and consumed with java client
- What is best way to check if any of the property of object is null or empty?
- Telerik's WPF RadColorPicker NoColorText property not working
- Possible consequences of duplicate ProgId for different classes
- How are multiple requests to Task.Run handled from a resource management standpoint?
- Optimizing C++ call from C#
- Make a per-web-application object available to Web API and SignalR controllers
- System.ComponentModel.DataAnnotations.Schema namespace conflict
- LINQ Except/Distinct based on few columns only, to not add duplicates
- Not displaying content by its URL string - absolute urls
Related Questions in PERFORMANCE
- Slow performance on ipad erasing image
- Can Apache Ant be told to cache its XML files?
- What are the pros and cons of the picture element?
- DB candidate as CouchDB/Schema replacement
- python member str performance too slow
- Split a large query (2 days) into pieces to increase the speed in Postgres
- Use GUI displayed results of SQL query vs new queries?
- fastest way to map a large number of longs
- Bash regular expression execution hangs on long expressions
- Why is calling a function so slow in Javascript?
- Performance of element-compare in java collections
- "Capture GPU Frame" in XCode -- iOS only?
- Efficiency penalty of initializing a struct/class within a loop
- Change the rotating speed of the circle when the mouse moves using javascript
- Replace foreach to make loop into queryable
Related Questions in ITERATION
- Add key and value to dictionary
- For...Next loop breaks when using Not() operator
- Python - Nested Lists
- Process pairs of elements in a vector
- Understanding "ValueError: need more than 1 value to unpack" w/without enumerate()
- Iteration vs. Recursion for simple processing?
- Iteration over XML returns Same Node Over & Over
- Can I trust the order of a dict to remain the same each time it is iterated over?
- Perl: Iterating through large hash, runs out of memory
- Prolog-iterating through list
- Making Sub Lists Based on Lengths of Items
- How to solve T(n) = T(n-1) + n^2?
- Python: If key in dictA exist and key dictB do something
- Next element of array every iteration chat messages display php
- C - Simple Linked List program that handles strings
Related Questions in NETWORK-DRIVE
- View XML file on network drive
- How to run my PHP interpreter on network files
- Can't map mounted Linux folder
- Balance availability and performance: Iterate and process over 10k MS Office Files (1 TB) with .NET on a shared network drive
- Can't open .MDB or access files on a mapped network drive
- Batch file can't find specified path when run from excel hyperlink
- Using FAM to monitor files moved to NFS mount
- How to read net use generated text file and use the net use command to remap the network drive
- How to create a batch file to map network drives after connected to VPN
- remote change a network drive location - powershell
- Inno Setup - {drive:src} is not returning mapped drive letter in Win7 and Win8
- Mapped Network Drive using Java is Not Connected
- Windows batch file fails after network drive timeout
- IE not rendering CSS properly when the site is located at networkdrive
- How to read an Excel file from a network drive?
Related Questions in AVAILABILITY
- Making code not runnable on other platforms
- Will scale Azure DB from Web To new tier cause availability issue
- Holiday Availability Calender - sum available days still left to sell over consecutive days
- Operation cannot be performed on database because it is involved in a database mirroring session or an availability group (Azure)
- Balance availability and performance: Iterate and process over 10k MS Office Files (1 TB) with .NET on a shared network drive
- Can i just check the domain availability by using the HTTP return status code?
- Use different implementations of a class depending on iOS version?
- SQL Server AlwaysOn Availability
- Azure availability zone - How many zones are there in East US?
- URL reporting Availability URL in unknown to Google in GSC live test
- Is this the correct way to calculate the availability of a web site by using all non-5xx http status codes / all status codes?
- Checking network availability of PC and of specific file via CMD
- How to do Availability Test for SQL Database Resource in Azure?
- Visibilty of private extensions on Visual Studio Marketplace
- full calendar business hours(available date and time) set dynamically through date picker
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In my answer I assume that the load mainly consists of reading the PowerPoint and Word files. So enumerating directories, generating the JPGs and writing the result isn't an issue. If not, the approach can be extended.
A simple approach would be:
Figure out how much IO load you want to generate at most, e.g. at most 5 MB/s. This is your read rate you do not want to exceed.
Retrieve the time before you start processing a file.
Retrieve the file size.
After processing a file, take the time again and calculate the duration.
When processing a file, you'll probably going over your read rate. So after processing a file, calculate how long you have to wait to fall under the read rate again and then wait. The calculation is basically
Use matching units such as seconds for wait_time and duration, bytes for file_size and bytes per second for the read_rate.
If the wait_time is negative, skip the waiting.