programming-notes | Various notes , about various thoughts | Topic Modeling library
kandi X-RAY | programming-notes Summary
kandi X-RAY | programming-notes Summary
Various notes, about various thoughts I've had, about various programming topics.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of programming-notes
programming-notes Key Features
programming-notes Examples and Code Snippets
Community Discussions
Trending Discussions on programming-notes
QUESTION
I have some code that reviews every page in a large PDF (20,000+ pages) and if that page contains a certain String, then it imports that page to another PDF.
Due to the number of occurrences, the PDF that it's being imported into grows almost as large as the source PDF - When it gets too large, it bombs out with the below exception:
...ANSWER
Answered 2017-Nov-30 at 22:09A program running into an OutofMemoryError
might have a memory leak, or it might simply require more memory to run properly.
Thus, one change to try in such a situation is to simply increase the memory assigned to the program. If the program then runs without an issue, you can consider this a fix. As long as the memory assigned does not become completely unreasonable, that is...
This appears to be the case here, as the op confirmed
I have increased the heap as a run configuration to 670mb (The maximum i can secure with my client equipment) and this has successfully resolved the issue - In fact, i tried it on a PDF twice the size as the original failing PDF, and it easily managed this as well.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install programming-notes
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page