libreoffice-online hangs opening large PDF

I have a docker container running with libreoffice on a ubuntu 2GB RAM machine on AWS, when opening smaller PDF everything looks okay. I need to open larger files, when tried to open 20MB PDF unable to see individual pages of PDF.

The admin console of libreoffice shows memory used as 1.3 GB, any minimum system recommendation for the above requirement will be really helpful. Thanks in advance.