christian-vigh-phpclasses/PdfToText

High Memory Usage

Opened this issue · 1 comments

I am parsing multiple pdf files using ajax request , this library is working nicely but after some files parsing it occupies high memory and server down problem occur.

My system

CPU Intel(R) Xeon(R) Gold 5120 CPU @ 2.20GHz (2 core(s))
Version Plesk Obsidian v18.0.33_build1800210123.00 os_CentOS 7
OS CentOS Linux 7.9.2009 (Core)

Memory : 1.78 GB

How to handle it ?

How are you running PHP (mod_php/php-fpm/etc...) and what web server are you running? (Apache/Nginx)

How big are the files you are processing?
What type of processing are you doing for text extraction?