EPAM Systems Interview Question

What steps would be taken to resolve java.lang.OutOfMemoryError: Metaspace error?