[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-sig-finance
Subject:    Re: [R-SIG-Finance] RBloomberg receives
From:       Sankalp Upadhyay <sankalp.upadhyay () gmail ! com>
Date:       2010-07-20 1:42:52
Message-ID: AANLkTikOv_B1fsKe1etX6zgAm8oQaB36xMSZkrtdXgJR () mail ! gmail ! com
[Download RAW message or body]

Hi Cliff,

You can increase the heap size by changing the maximum heap size of the java
virtual machine. To change it to 512 MB:

 conn <- blpConnect(jvm.params=c("-Xmx512m"))

But on a 32 bit machine you cannot go much beyond 1024m. If your data is
more than that you would have to do it in multiple calls. If you close the
connection it would clear the heap and you can make a new connection for the
next set of tickers.

Regards


On Tue, Jul 20, 2010 at 2:09 AM, Cliff Clive <cliffclive@gmail.com> wrote:

> 
> I'm running a loop to download daily tick data for ~200 stocks using the
> "tick" command in the latest version of RBloomberg.  I've run this program
> 5
> times today (for all of the days last week), and on the last run, I started
> receiving the following message:
> 
> java.lang.OutOfMemoryError: Java heap space
> 
> Once this message started appearing on my screen, I also noticed that R was
> downloading empty data files.
> 
> I stopped running my script, and then restarted it, beginning the loop at
> the iteration where I started downloading empty files.  It ran through the
> remaining stocks, and this time it downloaded full data sets.
> 
> Is it safe to assume, based on this observation, that RBloomberg can only
> download so much data each time a new connection is opened?  If that is the
> case, how often should I reset the connection in order to avoid missing
> data?
> --
> View this message in context:
> http://r.789695.n4.nabble.com/RBloomberg-receives-java-lang-OutOfMemoryError-what-does-this-mean-tp2294401p2294401.html
>  Sent from the Rmetrics mailing list archive at Nabble.com.
> 
> _______________________________________________
> R-SIG-Finance@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions
> should go.
> 



-- 
--
Sankalp Upadhyay

	[[alternative HTML version deleted]]

_______________________________________________
R-SIG-Finance@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should go.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic