15,914,594 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Mercurius84 (Top 9 by date)
Mercurius84
16-Jun-15 8:27am
View
Deleted
I'm using native
Mercurius84
23-May-15 3:59am
View
nope. it is
chunk by chunk
I noticed i have no issue if reading one file.
but if on multi threads my window service program screw. poor performance.
I tried writing similar code on vbs
mean while my window service executive these vbs in multi thread.
suprisingly result is so way greater than before
im looking into that solution
Mercurius84
22-May-15 1:12am
View
Done the checking. All memory reclaimed after each task completed.
It seems, once running the read file program. It allocates approximate amount of memory size.
for example: file size 2 gb, It allocates approximate 2gb.
I tried with a restart the service reading that 2gb file.
It went fast with the process that I mentioned earlier.
e.g. at first I see the counter from 1...in a blink it went to 15
then once the private memory reaches about 1gb or above...getting slower.
e.g. counter number 1....a blink...number 2...another blink number 3.
Hope that you get what I mean..
Thanks
Mercurius84
21-May-15 10:29am
View
nope at all
Mercurius84
21-May-15 10:28am
View
sorry, it was writing
line by line
not yet
i need support ppl to install memory checker on that server.
Mercurius84
21-May-15 9:37am
View
actually the file generate by our backend system. It has formating code on it. example:
carriage control characters
http://en.m.wikipedia.org/wiki/ASA_carriage_control_characters
im afraid i have to answer you yes. reading line by line.
Mercurius84
21-May-15 9:33am
View
it is running on 64 bit
windows server 2012
Mercurius84
21-May-15 8:53am
View
Yeah...she is a monster. Haha
This code:
using (FileStream fs = File.Open(p_strFilePath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
using (BufferedStream bs = new BufferedStream(fs))
using (StreamReader sr = new StreamReader(bs))
{
string m_strLine = "";
int cur_count = 0;
string secondLine = "";
while ((m_strLine = sr.ReadLine()) != null)
{
secondLine = (cur_count < allLines.Count) ? allLines[cur_count] : "";
}
}
what we did here is
a file (unstructure) -> process -> into (structure) file as in pdf.
we have pdf merger if the content of file belongs to the same location.
Summary:
Inside the file, consists pages of customer information from different location.
we split this information to its' own entity.
Then we group them by location as in pdf
Mercurius84
21-May-15 8:35am
View
My machine is have 150GB of memory it should sufficient enough to perform heavy duty tasks.
However, my application already using the said function
anyway to increase the upper limit or any suggested solution?
Thanks
Show More