SSLcom / esigner-codesign

GitHub Action for CodeSigner by SSL.com
13 stars 2 forks source link

java.lang.OutOfMemoryError: Java heap space #12

Closed rantoniuk closed 11 months ago

rantoniuk commented 11 months ago

We're getting Java heap space error on:

C:\Windows\system32\cmd.exe -/c CodeSignTool-v1.2.7-windows\CodeSignTool.bat sign -username=*** -*** -credential_id=*** -totp_secret=*** -input_file_path=Output\unsigned.exe -output_dir_path=Output\signed -override=false -malware_block=true
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

@bayrakmustafa, is there any way to pass Xmx to the action to raise the memory used by the action to circumvent this?

bayrakmustafa commented 11 months ago

@rantoniuk, I added jvm_max_memory to Github action input parameters. (https://github.com/SSLcom/esigner-codesign/blob/develop/.github/workflows/test.yml#L43) I sent it to develop branch. Can you test it?

rantoniuk commented 11 months ago

Tested and working perfectly, thanks for quick reaction!

tylerdmace commented 2 months ago

I'm trying to run the Windows docker image and am running into the same JVM OutOfMemoryError. Any work-arounds here?