Getting 500 Internal Server Error on Portal

book

Article ID: 144399

calendar_today

Updated On:

Products

CA Application Test Service Virtualization

Issue/Introduction

Getting 500 Internal Server Error on Portal when trying to View Test Cases

Environment

Release : 10.1

Component : CA Service Virtualization

Resolution

Looks like the Portal got an error because the Registry ran out of memory:

Registry log:

2020-01-13 17:14:21,429Z (11:14) [qtp1143711829-105] ERROR org.springframework.boot.context.web.ErrorPageFilter - Forwarding to error page from request [/api/v1/tests/testreports/BCAABD73362411EA96BF005056912208/BCF5A93E362411EAA84700FE20524153] due to exception [org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.OutOfMemoryError: Java heap space]
java.lang.RuntimeException: org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.OutOfMemoryError: Java heap space

Portal log:

2020-01-13 17:24:59,519Z (11:24) [qtp1513712028-19] ERROR org.springframework.boot.context.web.ErrorPageFilter - Forwarding to error page from request [/api/login] due to exception [Connection refused]
retrofit.RetrofitError: Connection refused
 at retrofit.RetrofitError.networkError(RetrofitError.java:27)

Increased the memory in the RegistryService.vmoptions file to -Xmx4g and in the PortalService.vmoptions file to -Xmx2g and restarted both. Resolved issue.