How to Increase Stack Space for Recursion in Java?

I am writing a method that needs a binary sort that can search through millions or characters. Is there a way to increase the stack space for the JVM?

I think there are some memory settings in your runtime config.

Recursion really should be avoided for MASSIVE and simple sorting. It's crazy inefficient in general.