java.lang.OutOfMemoryError: Java heap space

JFrog JIRA | Anastasiya Muntyan | 1 year ago
  1. 0

    1.chooce some big file (1gb) 2.upload it 3.while it uploading go to multi and than back to single {noformat} ??????????????? 02, 2015 2:00:18 PM com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException SEVERE: The exception contained within MappableContainerException could not be mapped to a response, re-throwing to the HTTP container java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3236) at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118) at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93) at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153) at com.sun.jersey.core.util.ReaderWriter.writeTo(ReaderWriter.java:115) at com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider.writeTo(AbstractMessageReaderWriterProvider.java:76) at com.sun.jersey.core.impl.provider.entity.ByteArrayProvider.readFrom(ByteArrayProvider.java:79) at com.sun.jersey.core.impl.provider.entity.ByteArrayProvider.readFrom(ByteArrayProvider.java:59) at com.sun.jersey.multipart.BodyPart.getEntityAs(BodyPart.java:310) at com.sun.jersey.multipart.FormDataBodyPart.getValueAs(FormDataBodyPart.java:329) at org.artifactory.ui.utils.MultiPartUtils.lambda$2(MultiPartUtils.java:49) at org.artifactory.ui.utils.MultiPartUtils$$Lambda$86/829070177.accept(Unknown Source) at java.util.ArrayList.forEach(ArrayList.java:1249) at org.artifactory.ui.utils.MultiPartUtils.lambda$0(MultiPartUtils.java:47) at org.artifactory.ui.utils.MultiPartUtils$$Lambda$85/67103743.accept(Unknown Source) at java.util.HashMap.forEach(HashMap.java:1280) at org.artifactory.ui.utils.MultiPartUtils.saveFileDataToTemp(MultiPartUtils.java:45) at org.artifactory.ui.rest.service.artifacts.deploy.ArtifactUploadService.execute(ArtifactUploadService.java:43) at org.artifactory.ui.rest.service.ServiceExecutor.process(ServiceExecutor.java:21) at org.artifactory.ui.rest.resource.BaseResource.runService(BaseResource.java:76) at org.artifactory.ui.rest.resource.artifacts.deploy.DeployArtifactResource.uploadArtifact(DeployArtifactResource.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205 ) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) {noformat}

    JFrog JIRA | 1 year ago | Anastasiya Muntyan
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    1.chooce some big file (1gb) 2.upload it 3.while it uploading go to multi and than back to single {noformat} ╫נ╫ץ╫ע 02, 2015 2:00:18 PM com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException SEVERE: The exception contained within MappableContainerException could not be mapped to a response, re-throwing to the HTTP container java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3236) at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118) at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93) at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153) at com.sun.jersey.core.util.ReaderWriter.writeTo(ReaderWriter.java:115) at com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider.writeTo(AbstractMessageReaderWriterProvider.java:76) at com.sun.jersey.core.impl.provider.entity.ByteArrayProvider.readFrom(ByteArrayProvider.java:79) at com.sun.jersey.core.impl.provider.entity.ByteArrayProvider.readFrom(ByteArrayProvider.java:59) at com.sun.jersey.multipart.BodyPart.getEntityAs(BodyPart.java:310) at com.sun.jersey.multipart.FormDataBodyPart.getValueAs(FormDataBodyPart.java:329) at org.artifactory.ui.utils.MultiPartUtils.lambda$2(MultiPartUtils.java:49) at org.artifactory.ui.utils.MultiPartUtils$$Lambda$86/829070177.accept(Unknown Source) at java.util.ArrayList.forEach(ArrayList.java:1249) at org.artifactory.ui.utils.MultiPartUtils.lambda$0(MultiPartUtils.java:47) at org.artifactory.ui.utils.MultiPartUtils$$Lambda$85/67103743.accept(Unknown Source) at java.util.HashMap.forEach(HashMap.java:1280) at org.artifactory.ui.utils.MultiPartUtils.saveFileDataToTemp(MultiPartUtils.java:45) at org.artifactory.ui.rest.service.artifacts.deploy.ArtifactUploadService.execute(ArtifactUploadService.java:43) at org.artifactory.ui.rest.service.ServiceExecutor.process(ServiceExecutor.java:21) at org.artifactory.ui.rest.resource.BaseResource.runService(BaseResource.java:76) at org.artifactory.ui.rest.resource.artifacts.deploy.DeployArtifactResource.uploadArtifact(DeployArtifactResource.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205 ) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) {noformat}

    JFrog JIRA | 1 year ago | Anastasiya Muntyan
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    Heya folks, Trying to upload a Vagrant box on an otherwise functional Artifactory 4.0 install through the web UI. It silently fails - the deploy button goes green as if upload is completed successfully - but the logs suggest that it's a problem with memory allocation: {code} 2015-08-07 05:21:35,623 [http-nio-8081-exec-1] [INFO ] (o.a.c.CentralConfigServiceImpl:299) - Configuration reloaded. Aug 07, 2015 5:25:03 AM com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException SEVERE: The exception contained within MappableContainerException could not be mapped to a response, re-throwing to the HTTP container java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3236) at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113) at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93) at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140) at com.sun.jersey.core.util.ReaderWriter.writeTo(ReaderWriter.java:115) at com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider.writeTo(AbstractMessageReaderWriterProvider.java:76) at com.sun.jersey.core.impl.provider.entity.ByteArrayProvider.readFrom(ByteArrayProvider.java:79) at com.sun.jersey.core.impl.provider.entity.ByteArrayProvider.readFrom(ByteArrayProvider.java:59) at com.sun.jersey.multipart.BodyPart.getEntityAs(BodyPart.java:310) at com.sun.jersey.multipart.FormDataBodyPart.getValueAs(FormDataBodyPart.java:329) at org.artifactory.ui.utils.MultiPartUtils.lambda$2(MultiPartUtils.java:49) at org.artifactory.ui.utils.MultiPartUtils$$Lambda$100/1200086864.accept(Unknown Source) at java.util.ArrayList.forEach(ArrayList.java:1249) at org.artifactory.ui.utils.MultiPartUtils.lambda$0(MultiPartUtils.java:47) at org.artifactory.ui.utils.MultiPartUtils$$Lambda$99/1315319030.accept(Unknown Source) at java.util.HashMap.forEach(HashMap.java:1280) at org.artifactory.ui.utils.MultiPartUtils.saveFileDataToTemp(MultiPartUtils.java:45) at org.artifactory.ui.rest.service.artifacts.deploy.ArtifactUploadService.execute(ArtifactUploadService.java:43) at org.artifactory.ui.rest.service.ServiceExecutor.process(ServiceExecutor.java:21) at org.artifactory.ui.rest.resource.BaseResource.runService(BaseResource.java:76) at org.artifactory.ui.rest.resource.artifacts.deploy.DeployArtifactResource.uploadArtifact(DeployArtifactResource.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) 2015-08-07 05:29:48,328 [http-nio-8081-exec-4] [INFO ] (o.a.c.CentralConfigServiceImpl:284) - Reloading configuration... 2015-08-07 05:29:48,328 [http-nio-8081-exec-4] [INFO ] (o.a.c.CentralConfigServiceImpl:336) - Saving new configuration in storage... 2015-08-07 05:29:48,344 [http-nio-8081-exec-4] [INFO ] (o.a.c.CentralConfigServiceImpl:339) - New configuration saved. 2015-08-07 05:29:48,372 [http-nio-8081-exec-4] [INFO ] (o.a.s.ArtifactoryApplicationContext:406) - Artifactory application context is ready. 2015-08-07 05:29:48,372 [http-nio-8081-exec-4] [INFO ] (o.a.c.CentralConfigServiceImpl:299) - Configuration reloaded. Aug 07, 2015 5:32:44 AM com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException SEVERE: The exception contained within MappableContainerException could not be mapped to a response, re-throwing to the HTTP container java.lang.OutOfMemoryError: Java heap space {code} The JVM settings are thus: General JVM Info: {code} Available Processors: 16 Heap Memory Usage-Committed: 2113929216 Heap Memory Usage-Init: 536870912 Heap Memory Usage-Max: 2147483648 Heap Memory Usage-Used: 1839683240 Non-Heap Memory Usage-Committed: 170876928 Non-Heap Memory Usage-Init: 2555904 Non-Heap Memory Usage-Max: -1 Non-Heap Memory Usage-Used: 162504520 {code} The server isn't under heavy load at all, it's literally just running Artifactory at the mo.

    JFrog JIRA | 1 year ago | N Bailey
    java.lang.OutOfMemoryError: Java heap space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Heya folks, Trying to upload a Vagrant box on an otherwise functional Artifactory 4.0 install through the web UI. It silently fails - the deploy button goes green as if upload is completed successfully - but the logs suggest that it's a problem with memory allocation: {code} 2015-08-07 05:21:35,623 [http-nio-8081-exec-1] [INFO ] (o.a.c.CentralConfigServiceImpl:299) - Configuration reloaded. Aug 07, 2015 5:25:03 AM com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException SEVERE: The exception contained within MappableContainerException could not be mapped to a response, re-throwing to the HTTP container java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3236) at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113) at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93) at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140) at com.sun.jersey.core.util.ReaderWriter.writeTo(ReaderWriter.java:115) at com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider.writeTo(AbstractMessageReaderWriterProvider.java:76) at com.sun.jersey.core.impl.provider.entity.ByteArrayProvider.readFrom(ByteArrayProvider.java:79) at com.sun.jersey.core.impl.provider.entity.ByteArrayProvider.readFrom(ByteArrayProvider.java:59) at com.sun.jersey.multipart.BodyPart.getEntityAs(BodyPart.java:310) at com.sun.jersey.multipart.FormDataBodyPart.getValueAs(FormDataBodyPart.java:329) at org.artifactory.ui.utils.MultiPartUtils.lambda$2(MultiPartUtils.java:49) at org.artifactory.ui.utils.MultiPartUtils$$Lambda$100/1200086864.accept(Unknown Source) at java.util.ArrayList.forEach(ArrayList.java:1249) at org.artifactory.ui.utils.MultiPartUtils.lambda$0(MultiPartUtils.java:47) at org.artifactory.ui.utils.MultiPartUtils$$Lambda$99/1315319030.accept(Unknown Source) at java.util.HashMap.forEach(HashMap.java:1280) at org.artifactory.ui.utils.MultiPartUtils.saveFileDataToTemp(MultiPartUtils.java:45) at org.artifactory.ui.rest.service.artifacts.deploy.ArtifactUploadService.execute(ArtifactUploadService.java:43) at org.artifactory.ui.rest.service.ServiceExecutor.process(ServiceExecutor.java:21) at org.artifactory.ui.rest.resource.BaseResource.runService(BaseResource.java:76) at org.artifactory.ui.rest.resource.artifacts.deploy.DeployArtifactResource.uploadArtifact(DeployArtifactResource.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) 2015-08-07 05:29:48,328 [http-nio-8081-exec-4] [INFO ] (o.a.c.CentralConfigServiceImpl:284) - Reloading configuration... 2015-08-07 05:29:48,328 [http-nio-8081-exec-4] [INFO ] (o.a.c.CentralConfigServiceImpl:336) - Saving new configuration in storage... 2015-08-07 05:29:48,344 [http-nio-8081-exec-4] [INFO ] (o.a.c.CentralConfigServiceImpl:339) - New configuration saved. 2015-08-07 05:29:48,372 [http-nio-8081-exec-4] [INFO ] (o.a.s.ArtifactoryApplicationContext:406) - Artifactory application context is ready. 2015-08-07 05:29:48,372 [http-nio-8081-exec-4] [INFO ] (o.a.c.CentralConfigServiceImpl:299) - Configuration reloaded. Aug 07, 2015 5:32:44 AM com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException SEVERE: The exception contained within MappableContainerException could not be mapped to a response, re-throwing to the HTTP container java.lang.OutOfMemoryError: Java heap space {code} The JVM settings are thus: General JVM Info: {code} Available Processors: 16 Heap Memory Usage-Committed: 2113929216 Heap Memory Usage-Init: 536870912 Heap Memory Usage-Max: 2147483648 Heap Memory Usage-Used: 1839683240 Non-Heap Memory Usage-Committed: 170876928 Non-Heap Memory Usage-Init: 2555904 Non-Heap Memory Usage-Max: -1 Non-Heap Memory Usage-Used: 162504520 {code} The server isn't under heavy load at all, it's literally just running Artifactory at the mo.

    JFrog JIRA | 1 year ago | N Bailey
    java.lang.OutOfMemoryError: Java heap space
  6. 0

    Uploading large files causes java.lang.OutOfMemoryError

    GitHub | 2 years ago | JacoBriers
    java.lang.OutOfMemoryError: Java heap space

    8 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at java.util.Arrays.copyOf()
    2. Java RT
      ByteArrayOutputStream.write
      1. java.util.Arrays.copyOf(Arrays.java:3236)
      2. java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118)
      3. java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
      4. java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153)
      4 frames
    3. jersey-core
      ByteArrayProvider.readFrom
      1. com.sun.jersey.core.util.ReaderWriter.writeTo(ReaderWriter.java:115)
      2. com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider.writeTo(AbstractMessageReaderWriterProvider.java:76)
      3. com.sun.jersey.core.impl.provider.entity.ByteArrayProvider.readFrom(ByteArrayProvider.java:79)
      4. com.sun.jersey.core.impl.provider.entity.ByteArrayProvider.readFrom(ByteArrayProvider.java:59)
      4 frames
    4. jersey-multipart
      FormDataBodyPart.getValueAs
      1. com.sun.jersey.multipart.BodyPart.getEntityAs(BodyPart.java:310)
      2. com.sun.jersey.multipart.FormDataBodyPart.getValueAs(FormDataBodyPart.java:329)
      2 frames
    5. org.artifactory.ui
      MultiPartUtils.lambda$2
      1. org.artifactory.ui.utils.MultiPartUtils.lambda$2(MultiPartUtils.java:49)
      1 frame