EPAM Systems interview question

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