Fortify Static Code Analyzer – Troubleshooting Memory Tuning – Stack Overflow

Stack Overflow

Each thread in a Java application has its own stack. The stack holds return addresses, function/method call arguments, and so on. If a thread tends to process large structures with recursive algorithms, it might need a large stack for all those return addresses. With the JVM, you can set that size with the ‑Xss option.


This message typically appears in the Fortify Static Code Analyzer log file, but might also appear in the command-line output:


The default stack size is 16 MB. To increase the stack size, pass the ‑Xss option to the sourceanalyzer command. For example, ‑Xss32M increases the stack to 32 MB.

Leave a Comment