out-of-memory

How to build & store this large lower triangular matrix for matrix-vector multiplication?

大兔子大兔子 提交于 2019-12-11 15:44:11
问题 I need to create a lower triangular matrix with a special structure then do a matrix-vector multiplication. The matrix is parameterized by a value k . It main diagonal is a vector of k ^ 0 , i.e. 1; the first sub-diagonal is a vector of k ^ 1 , and the i -th sub-diagonal holds k ^ i . Here is a 5 x 5 example with k = 0.9 : structure(c(1, 0.9, 0.81, 0.729, 0.6561, 0, 1, 0.9, 0.81, 0.729, 0, 0, 1, 0.9, 0.81, 0, 0, 0, 1, 0.9, 0, 0, 0, 0, 1), .Dim = c(5L, 5L)) # [,1] [,2] [,3] [,4] [,5] #[1,] 1

HIVE very long field gives OOM Heap

冷暖自知 提交于 2019-12-11 15:27:12
问题 We are storing string fields which varies in length from small(few kB) to very long(<400MB) in HIVE table. Now we are facing the issue of OOM when copying data from one table to another(without any conditions or joins), which is not exactly what we are running in production, but it is the most simple use case where this problem occurs. So the HQL is basically just: INSERT INTO new_table SELECT * FROM old_table; Container and Java Heap was set to 16GB, we had tried different file formats

What could I do to build the 3D Bar Chart on my machine using Mayavi?

柔情痞子 提交于 2019-12-11 15:12:20
问题 Want to build a 3D Bar Chart using Mayavi (on my Asus Laptop Intel CoreTM i7-4510U CPU @ 2.00 GHz with 8 GBs de RAM, Windows 10) using a Jupyter Notebook (on a Python virtualenv) but I'm getting a grey screen. Once the data was imported, I clicked in New > Python 3 and wrote Used pandas' fast CSV parser, pandas.read_csv(), and once I ran line 4, I could see the memory usage increase to 88% of the capable using CleanMem Mini Monitor and got results in less than 1 minute. Then, to build the bar

OutOfMemory error when executing rules for decision table using statelessKieSession

*爱你&永不变心* 提交于 2019-12-11 14:40:03
问题 I am executing rules for a decision table using statelessKieSession. I have 1000 objects and 10 rules for each object so total I have 10000 rules for one row. Rules will process for each row in the decision table. Currently before finishing the execution of one row I am getting OutOfMemory error. Any idea about this issue? From the below link you can refer the memory usage details and find the classes which creates more instances while executing the rules. 来源: https://stackoverflow.com

How to clear memory from pictures of previous layouts? How to clean memory when go to different layout/activity?

≡放荡痞女 提交于 2019-12-11 13:37:33
问题 My app consists from 4 layout files, each layout uses a different image as background. I manage to load layout 1 and 2, but after I go to layout 3 I get error "Caused by: java.lang.OutOfMemoryError" I suspect it's because the layout 1 and layout 2 is still in the memory. Any way is there a way to clean memory everytime I go to a new layout so I don't run out of memory? Thanks. P.S I use Android Studio. P.S 2 I'm not sure if this changes anything but just in case this is how I go to different

Powershell FTP Send large file System.OutOfMemoryException

独自空忆成欢 提交于 2019-12-11 12:30:10
问题 I have a script partially based on the one here: Upload files with FTP using PowerShell It all works absolutely fine with tiny files but I am trying to use it to make the process we use for exporting access mdb files to clients that only have ftp more robust. My first test involved a 10MB file and I ran into a System.OutOfMemoryException at the Get-Content stage The powershell ISE was running to nearly 2GIG usage during the get attempt. Here is a full script sample (Be gentle. I am fairly new

How to crop a Bitmap with a minimum usage of memory?

点点圈 提交于 2019-12-11 12:24:49
问题 In my app I'm loading plenty of images from the web. That's working fine so far: @Override public void onSuccess( byte[] response ) { Bitmap image = BitmapFactory.decodeByteArray( response, 0, response.length, options ); ... } But in fact it would be nice to use only an extract of the image during the application process. So I tried something like this: @Override public void onSuccess( byte[] response ) { Bitmap source = BitmapFactory.decodeByteArray( response, 0, response.length, options );

OutOfMemory on AsyncTask in Android

半世苍凉 提交于 2019-12-11 11:57:04
问题 Im getting an OutOfMemory Exception when using this code: class ApiTask extends AsyncTask<URI, Void, String> { private Exception exception; protected void onPreExecute() { dialog = ProgressDialog.show(DownloadedActivity.this, "", "Contacting Server...", true); } protected String doInBackground(URI... uri) { try { HttpClient client = new DefaultHttpClient(); HttpGet request = new HttpGet(); try { request.setURI(uri[0]); return client.execute(request, new BasicResponseHandler()); } catch

How to use bitmap factory to compress image without reduce the quality taken from camera?

不想你离开。 提交于 2019-12-11 11:54:33
问题 I have 3 images taken from camera and I want to set to 3 ImageView. But it throws OutOfMemory because the image has large size. I've read that bitmap factory can compress the size without reducing the quality. The problem is I don't know how to do that. This is my onClick Button: openCameraButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); file = new File(Environment

Out of memory in Hive/tez with LATERAL VIEW json_tuple

别来无恙 提交于 2019-12-11 11:37:42
问题 [There was an initial question at OOM in tez/hive but after some answers and comments a new question with the new knowledge is warranted.] I have a query with a large LATERAL VIEW. It joins 4 tables, all ORC compressed. The buckets are on the same column. It goes like: select 10 fields from t , 80 fields from the lateral view from ( select 10 fields from e (800M rows, 7GB of data, 1 bucket) LEFT JOIN m (1M rows, 20MB ) LEFT JOIN c (2k rows, <1MB) LEFT JOIN contact (150M rows, 283GB, 4 buckets