Pergunta de entrevista da empresa EPAM Systems

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