Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heap space issues on import #13

Open
jamesrwelch opened this issue Apr 13, 2022 · 2 comments
Open

Heap space issues on import #13

jamesrwelch opened this issue Apr 13, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@jamesrwelch
Copy link
Contributor

When calculating enumerations / summary metadata:

2022-04-13 20:59:00,351 [080-exec-3] ERROR o.g.web.errors.GrailsExceptionResolver   : OutOfMemoryError occurred when processing request: [POST] /api/dataModels/import/uk.ac.ox.softeng.maurodatamapper.plugins.database.postgres/PostgresDatabaseDataModelImporterProviderService/6.0.0 - parameters:
folderId: ed90f3db-b4ef-4beb-a224-7fc3fa4c3ce2
modelName: 
dataModelNameSuffix: 
importAsNewBranchModelVersion: false
importAsNewDocumentationVersion: false
propagateFromPreviousVersion: false
finalised: false
schemaNames: 
databaseHost: localhost
databaseUsername: maurodatamapper
databasePassword: MauroDataMapper1234
databasePort: 
databaseSSL: false
newBranchName: 
databaseNames: maurodatamapper
organisation: 
author: 
description: 
maxEnumerations: 20
detectEnumerations: true
calculateSummaryMetadata: false
sampleThreshold: 
samplePercent: 
Java heap space. Stacktrace follows:

java.lang.reflect.InvocationTargetException: null
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at org.grails.core.DefaultGrailsControllerClass$ReflectionInvoker.invoke(DefaultGrailsControllerClass.java:211)
	at org.grails.core.DefaultGrailsControllerClass.invoke(DefaultGrailsControllerClass.java:188)
	at org.grails.web.mapping.mvc.UrlMappingsInfoHandlerAdapter.handle(UrlMappingsInfoHandlerAdapter.groovy:90)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1067)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
	at org.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:77)
	at org.grails.web.filters.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:67)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.OutOfMemoryError: Java heap space
@jamesrwelch jamesrwelch added the bug Something isn't working label Apr 13, 2022
@olliefreeman
Copy link
Contributor

V6 has issues due to the way it performs sampling, pls try the latest develop branch 6.1.0-SNAPSHOT as this probably won’t have the same issues

@jamesrwelch
Copy link
Contributor Author

No joy, sadly. Running against Mauro's own database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants