https://linen.dev logo
#help
Title
# help
m

Mani Kasi

08/15/2023, 2:00 AM
Hi Team, Good day. Getting heap space error while using the admin/requests API. <localhost:9999/__admin/requests>
Copy code
HTTP ERROR 500 java.lang.OutOfMemoryError: Java heap space
URI:/__admin/requestsSTATUS:500MESSAGE:java.lang.OutOfMemoryError: Java heap spaceSERVLET:com.github.tomakehurst.wiremock.servlet.WireMockHandlerDispatchingServlet-1460a8c0CAUSED BY:java.lang.OutOfMemoryError: Java heap space
Caused by:
java.lang.OutOfMemoryError: Java heap space
	at java.lang.StringCoding.encode(StringCoding.java:350)
	at java.lang.String.getBytes(String.java:941)
	at com.github.tomakehurst.wiremock.common.Strings.bytesFromString(Strings.java:48)
	at com.github.tomakehurst.wiremock.common.Strings.bytesFromString(Strings.java:40)
	at com.github.tomakehurst.wiremock.http.Body.<init>(Body.java:48)
	at com.github.tomakehurst.wiremock.http.Body.fromOneOf(Body.java:73)
	at com.github.tomakehurst.wiremock.http.ResponseDefinition.<init>(ResponseDefinition.java:75)
	at com.github.tomakehurst.wiremock.client.ResponseDefinitionBuilder.build(ResponseDefinitionBuilder.java:282)
	at com.github.tomakehurst.wiremock.client.ResponseDefinitionBuilder.build(ResponseDefinitionBuilder.java:230)
	at com.github.tomakehurst.wiremock.admin.tasks.GetAllRequestsTask.execute(GetAllRequestsTask.java:47)
j

Jamie Tanna [he/him]

08/15/2023, 6:18 AM
How much memory have you given the app?