Document.Close() closes the output stream, there's no need to close it
twice.
Paulo
- Original Message -
From: "Mike Marchywka"
To:
Sent: Wednesday, August 12, 2009 4:10 PM
Subject: Re: [iText-questions] out of Kernel memory
> Maybe it's related to the inde
@lists.sourceforge.net
Subject: Re: [iText-questions] out of Kernel memory
> Maybe it's related to the indexing sevice.
>
> Anyway, I think the notion that there is some feature
>
> that scans the files is a good one. Now you have three suggestions:
>
> Virus checker
>
>
> Maybe it's related to the indexing sevice.
>
> Anyway, I think the notion that there is some feature
>
> that scans the files is a good one. Now you have three suggestions:
>
> Virus checker
>
> SVN (or some other similar tool)
>
> The windows indexing service (not sure about the name, but I mea
rvice that indexes files to enable faster searching).
/Klas
Ämne:
Re: [iText-questions] out of Kernel memory
Från:
"Kobty, Joseph"
Datum:
Tue, 11 Aug 2009
; FileStream strm = new FileStream(Path.Combine(outputPath,
> reportName), FileMode.Create);
>
> PdfWriter writer = PdfWriter.GetInstance(pdfDocument, strm);
>
> pdfDocument.Open();
>
> pdfDocument.Add(new Paragraph("test"));
>
> pdfDocument.Close();
>
> }
iText here
Sent: Tuesday, August 11, 2009 11:33:29 AM
Subject: Re: [iText-questions] out of Kernel memory
I will try that, thanks.
Another interesting observation. The kernel memory leak starts after about 7000
files created, so it is not immediate,
And then continues to grow. Only way to shri
de.Create);
PdfWriter writer = PdfWriter.GetInstance(pdfDocument, strm);
pdfDocument.Open();
pdfDocument.Add(new Paragraph("test"));
pdfDocument.Close();
}
Paulo
- Original Message -
From: "Kobty, Joseph"
To: "Post all your questions about iText here"
Sent
, 2009 11:14 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] out of Kernel memory
The SYSINTERNALS tool you are referring to is PROCMON.
Great tool for tracking down internal issues in Windows.
Howard Shank
- Original Message
From: Mike Marchywka
To: itext
] out of Kernel memory
> Date: Tue, 11 Aug 2009 07:47:39 -0700
> From: hgshank
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] out of Kernel memory
>
> If the files are being written to a different serv
> Date: Tue, 11 Aug 2009 07:47:39 -0700
> From: hgshank
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] out of Kernel memory
>
> If the files are being written to a different server and that server
> expe
sday, August 11, 2009 10:30:47 AM
Subject: Re: [iText-questions] out of Kernel memory
Change your test to the following and let it run for a few minutes and you will
see the kernel memory climb
It does not happen in your example because you are writing to the same file
name each time. Seems to be a
Writer.GetInstance(pdfDocument, strm);
pdfDocument.Open();
pdfDocument.Add(new Paragraph("test"));
pdfDocument.Close();
}
Paulo
- Original Message -
From: "Kobty, Joseph"
To: "Post all your questions about iText here"
Sent: Monday, August 10, 2009 9:32 PM
Subjec
:03 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] out of Kernel memory
I have this code running and all is ok.
for (int i = 0; i < 100; i++) {
Document pdfDocument = new Document();
FileStream strm = new FileStream("c:\\atp.pdf", FileMode.Create
here
Subject: Re: [iText-questions] out of Kernel memory
I have this code running and all is ok.
for (int i = 0; i < 100; i++) {
Document pdfDocument = new Document();
FileStream strm = new FileStream("c:\\atp.pdf", FileMode.Create);
PdfWriter writer = PdfWriter.GetInstance(pdfD
new Paragraph("test"));
pdfDocument.Close();
}
Paulo
- Original Message -
From: "Kobty, Joseph"
To: "Post all your questions about iText here"
Sent: Monday, August 10, 2009 9:32 PM
Subject: Re: [iText-questions] out of Kernel memory
Yes I am using V4
-questions] out of Kernel memory
Are you using iTextSharp 4.1.6? If you are using .NET 2.0 without SP1 you
may have leaks due to leaks in the framework.
Paulo
- Original Message -
From: "Kobty, Joseph"
To:
Sent: Monday, August 10, 2009 8:46 PM
Subject: [iText-questions] out of Ker
helps, but it did not.
From: Howard Shank [mailto:hgsh...@yahoo.com]
Sent: August 10, 2009 4:22 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] out of Kernel memory
Joseph,
A couple of questions for you.
1. Why are you closing the strm? It is inside a using block
Joseph,
A couple of questions for you.
1. Why are you closing the strm? It is inside a using block and that handles it
for you.
2. Why are you closing the strm before finishing the PDF?
You should consider the following,
Remove strm.close();
Regards,
Howard Shank
Are you using iTextSharp 4.1.6? If you are using .NET 2.0 without SP1 you
may have leaks due to leaks in the framework.
Paulo
- Original Message -
From: "Kobty, Joseph"
To:
Sent: Monday, August 10, 2009 8:46 PM
Subject: [iText-questions] out of Kernel memory
Hi
I am creating PDF doc
19 matches
Mail list logo