chrismattmann / tika-python

Tika-Python is a Python binding to the Apache Tika™ REST services allowing Tika to be called natively in the Python community.
Apache License 2.0
1.51k stars 234 forks source link

[MainThread ] [WARNI] Tika server returned status: 500 #302

Closed suresh-vy closed 4 years ago

suresh-vy commented 4 years ago

Hi

While working with 1.7GB zip file i'm getting below error

[MainThread ] [WARNI] Tika server returned status: 500

currently i'm using tika-python version 1.2.4

in my environmental variable I set java_OPTS

JAVA_OPTS=-Xms2024m -Xmx4096m -Xss2024m -Xmn512m

Could please tell me how to work with large file using tika-python

chrismattmann commented 4 years ago

hi @suresh-vy can you try starting a tika server on your own (before running tika python) with your desired requirements for memory? Then try tika-python and see if it works? My guess is that your opts weren't being propagated to the server.