syvaidya / openstego

OpenStego is a steganography application that provides two functionalities: a) Data Hiding: It can hide any data within an image file. b) Watermarking: Watermarking image files with an invisible signature. It can be used to detect unauthorized file copying.
https://www.openstego.com
GNU General Public License v2.0
1.13k stars 206 forks source link

java.lang.OutOfMemoryError: Java heap space #36

Closed ianrelecker closed 4 years ago

ianrelecker commented 4 years ago

Having an issue in v0.7.3 where I am getting a java.lang.OutOfMemoryError. This happens in Data Hiding and Digital Watermarking. I am running Java Version 1.8.0_241. Running 16GB of Ram, OpenStego fully utilizes the CPU and takes about 1200 MB of ram before erroring out. Capture

ianrelecker commented 4 years ago

I am also running the .jar version if that helps!

syvaidya commented 4 years ago

This might happen with larger image files. Please increase the JVM memory allocation. In the bat/sh file change -Xmx1024m to -Xmx4096m (4gb allocation). You can increase as required. By the way, you should be using 64-bit java if you want to allocate more than 1.5GB memory.