out-of-memory

Grails controller (simple) code consuming too much memory. How to optimise?

荒凉一梦 提交于 2019-12-08 09:18:14
问题 I have a pretty simple domain classes and a controller that while runtime consumes over 400MB - need some advice on optimising it. Basically I have two domain classes A and B, which are in a two one-to-many ralations (actually class B represents a many-to-many relationship between class A instances, - single object of A can be referenced by multiple B's objects as 'fromA' and single object of A can be referenced by multiple B's objects as 'toA' - like the GORM documentation and flights and

How is an array stored in memory in this program? [duplicate]

给你一囗甜甜゛ 提交于 2019-12-08 08:45:11
问题 This question already has answers here : How does C identify end of character array when there's no null terminator? [duplicate] (3 answers) Closed 3 years ago . How is an array stored in memory in this program? What happened here? How to understand this behaviour in c?(is it undefine/unspecified/implementation behaviour). #include <stdio.h> int main() { char a[5] = "world"; char b[16] = "haii how are you"; printf("string1 %s\nstring2 %s\n", a, b); return 0; } output: user@toad:~$ gcc -Wall

MTOM not working when using SOAPHandler

佐手、 提交于 2019-12-08 08:37:28
问题 I try to transfer file with Mtom and it is working pretty good until i use SoapHandler to verify client signature. SoapHandler keeps all message and changes it to base64 encoded. So when i try to get huge file, Jvm throws heap size exception. Do you guys know any ways to solve this problem? 回答1: The Java JRE comes with a JAX-WS Provider. This provider has what I would consider a bug. If a SoapHandler is added, either by directly getting the HandlerChain or by using a HandlerResolver, the

JSONArray throwing out of memory exception in android

倖福魔咒の 提交于 2019-12-08 08:05:59
问题 In my app I sync some data at the end of day to the app server.For this I wrap all my data as a JSONArray of JSONObjects.The data mainly includes about 50 pictures each with a size of approx 50kb(along with some text data).All these pictures are encoded using base64 encoding.Everthing works fine when the pictures uploaded(along with some text data) are few in number,but when I upload a large no of pictures ,say around 50 then I see in the logs that all the data is properly formed into the

Comparison of Image Library for Android (Picasso, Fresco, etc.)

南楼画角 提交于 2019-12-08 08:04:15
问题 Does anyone make a comparison about the Image-library for android ? Handling images in Android sometimes is a headache since it's always about the memory problem. There are some popular libs also (such as Picasso , Fresco ), having been playing some of those, anyone did some comparison before ? 回答1: Refer to this: https://twitter.com/jessewilson/status/581235604740042752 Local image caching solution for Android: Square Picasso vs Universal Image Loader https://www.bignerdranch.com/blog

Google Maps - Out of memory exception

送分小仙女□ 提交于 2019-12-08 07:40:54
问题 I am using Google Maps v2 and am getting following error: E/qdmemalloc(17414): ion: Failed to map memory in the client: Out of memory E/qdgralloc(17414): Could not mmap handle 0x7e55bf40, fd=143 (Out of memory) E/qdgralloc(17414): gralloc_register_buffer: gralloc_map failed E/GraphicBuffer(17414): unflatten: registerBuffer failed: Out of memory (-12) The app doesn't crash yet, but the map isn't shown anymore. When I load the activity that contains the map again, the app shows a warning and

OutOfMemoryException using RDLC, LocalReport, Microsoft.Reporting.WebForms in ASP.NET 4.5

ぃ、小莉子 提交于 2019-12-08 07:31:18
问题 In my Production environment, in THE SAME IIS Server, I have 2 applications v1 App, vS 2008 , .NET 3.5 ) , https://server/v1/Ventas.aspx Works fine using Local Report (RDLC) v2 App (VS 2012, .NET 4.5.1) (https://server/v2/Ventas.aspx gets OutOfMemoryException error using Local Report (RDLC) Pool for ecah application: v1 ->APPPOOL "xxx2001Pool" (MgdVersion:v2.0,MgdMode:Classic,state:Started) Account: domain\MyAppPool v2 ->APPPOOL "xxx2015Pool" (MgdVersion:v4.0,MgdMode:Classic,state:Started).

OutOfMemoryError occured : Java heap space in play framework

夙愿已清 提交于 2019-12-08 07:11:08
问题 I am creating play-based web application with java. When I run it an error occured with the following error: Execution exception (In /app/controllers/Application.java around line 12) OutOfMemoryError occured : Java heap space play.exceptions.JavaExecutionException: Java heap space at play.mvc.ActionInvoker.invoke(ActionInvoker.java:227) at Invocation.HTTP Request(Play!) Caused by: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOfRange(Arrays.java:3209) at java.lang.String

How to make sure Android bitmaps are cleared out of Heap

非 Y 不嫁゛ 提交于 2019-12-08 06:46:11
问题 I have an activity (activity1) which uses a decently large amount of bitmaps. I also have another activity which loads bitmaps (activity2). When running on some phones, I get an OOM error in activity2. I've tracked down the error to being caused by the layout in activity1. If I take out all of the bitamps in activity1, and replace them with just hex colors, then I do not get an OOM error in activity2. So from this I'm assuming that the bitmaps I'm using in activity1 are not being removed from

Picasso clear memory [duplicate]

允我心安 提交于 2019-12-08 06:46:10
问题 This question already has answers here : Load large images with Picasso and custom Transform object (2 answers) Closed 3 years ago . I have many images loaded using Picasso in a view flipper which is in a fragment. I want to know if the images are still in memory when I change to a different fragment. If they persist in the memory how can I remove them. Any suggestions on any other method to load images to a view flipper would be appreciated. The images are in the internal memory of the