Applies to:
- Liquibase Enterprise (Datical)
Issue Summary:
When running the `snapshot` command, the job fails with an error message: "Error: null (java.lang.StackOverflowError)."
Error Message:
Error: null (java.lang.StackOverflowError).
Root Cause:
The snapshot command queries the database to capture the current state, which includes gathering all objects in the database. All of the information captured is stored in memory at runtime, which can lead to this type of error occurring because of an out-of-memory error related to the Java stack size. This is often due to the size of the database, especially if there are many deep dependencies or loop dependencies included in the snapshot.
Resolution:
The recommended solution is to temporarily increase the Java stack size, which can be done by appending the `--vmargs -Xss4M` parameter to your command.
- For 2 megabytes, use: -Xss2M
- For 4 megabytes, use: -Xss4M
- For 8 megabytes, use: -Xss8M
- The default value is 512Kb.
Example command:
hammer snapshot --snapshotSchemaList={SCHEMA_NAME} --format=changelog --ddlExcludeList=non_stored_logic --vmargs -Xss4M
Comments
0 comments
Article is closed for comments.