java.lang.OutOfMemoryError: unable to create new native thread
Thanks to all who responded to my problem. An interim update. I am still not sure what has been happening but Rbbg is now working. I use RStudio and recently upgraded to the latest version. It appears that the upgrade did not work as smoothly as it should have done since when I uninstalled and went back to the earlier version of RStudio it started to work again. I have opened up a discussion thread on RStudio to see if any reader can shed any light on the problem. When I hear something, I will post again here. Thanks again Gordon From: John Laing [mailto:john.laing at gmail.com] Sent: 29 November 2012 13:06 To: Gordon Morrison Cc: anmol sethy; Nick White; r-sig-finance at r-project.org Subject: Re: [R-SIG-Finance] java.lang.OutOfMemoryError: unable to create new native thread Unfortunately, I don't have much insight into JVM issues. But I found a SO question (http://stackoverflow.com/questions/6754628/eclipse-crashes-with-unable-to-create-new-native-thread-any-ideas-my-setti)?indicating that the thread stack size could be a problem.?What happens if you try this? conn <- blpConnect(jvm.params="-Xss1024k") -John
On Thu, Nov 29, 2012 at 5:26 AM, Gordon Morrison <Gordon.Morrison at ftse.com> wrote:
Sorry, perhaps some more information. If I run the code from RStudio, I get the errors already mentioned. But if I run it just from the RGui, the connection is made and data can be downloaded. Gordon -----Original Message----- From: r-sig-finance-bounces at r-project.org [mailto:r-sig-finance-bounces at r-project.org] On Behalf Of Gordon Morrison Sent: 29 November 2012 10:21 To: 'anmol sethy'; 'Nick White' Cc: 'r-sig-finance at r-project.org' Subject: Re: [R-SIG-Finance] java.lang.OutOfMemoryError: unable to create new native thread It happens with a cold booted machine as well
library(Rbbg)
Loading required package: rJava
conName <- blpConnect()
R version 2.15.0 (2012-03-30)
rJava Version 0.9-3
Rbbg Version 0.4-153
Java environment initialized successfully.
Looking for most recent blpapi3.jar file...
Adding C:\blp\API\APIv3\JavaAPI\v3.4.8.1\lib\blpapi3.jar to Java classpath
Error in .jnew("org/findata/blpwrapper/Connection", java.log.level) :
? java.lang.OutOfMemoryError: unable to create new native thread
conName <- blpConnect(jvm.params = "-Xmx1024m")
R version 2.15.0 (2012-03-30)
rJava Version 0.9-3
Rbbg Version 0.4-153
Using JVM parameters -Xmx1024m
Java environment initialized successfully.
Looking for most recent blpapi3.jar file...
Adding C:\blp\API\APIv3\JavaAPI\v3.4.8.1\lib\blpapi3.jar to Java classpath
Error in .jnew("org/findata/blpwrapper/Connection", java.log.level) :
? java.lang.OutOfMemoryError: unable to create new native thread
Gordon
From: anmol sethy [mailto:sethy.anmol at gmail.com]
Sent: 29 November 2012 07:18
To: Nick White
Cc: Gordon Morrison; r-sig-finance at r-project.org
Subject: Re: [R-SIG-Finance] java.lang.OutOfMemoryError: unable to create new native thread
I am having this problem occasionally as well.?
Solution is either a gc() or restart of r terminal . I also notice that it occurs when I am trying to open up fourth or fifth instance of the connection without closing earlier ones.
On Thu, Nov 29, 2012 at 2:53 PM, Nick White <n-e-w at qtradr.net> wrote:
Can you please clarify if this happens with a cold booted machine with nothing else but R and Bloomberg running -- or if you've already run other commands.
On Nov 29, 2012, at 1:40, Gordon Morrison <Gordon.Morrison at ftse.com> wrote:
Hi I am having a problem connecting to Bloomberg. Here are the symptoms ....
library(Rbbg)
Loading required package: rJava
conName <- blpConnect()
R version 2.15.0 (2012-03-30)
rJava Version 0.9-3
Rbbg Version 0.4-153
Java environment initialized successfully.
Looking for most recent blpapi3.jar file...
Adding C:\blp\API\APIv3\JavaAPI\v3.4.8.1\lib\blpapi3.jar to Java classpath
Error in .jnew("org/findata/blpwrapper/Connection", java.log.level) :
?java.lang.OutOfMemoryError: unable to create new native thread
sessionInfo()
R version 2.15.0 (2012-03-30) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United Kingdom.1252 ?LC_CTYPE=English_United Kingdom.1252 [3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C [5] LC_TIME=English_United Kingdom.1252 attached base packages: [1] stats ? ? graphics ?grDevices utils ? ? datasets ?methods ? base other attached packages: [1] gdata_2.12.0 Rbbg_0.4-153 rJava_0.9-3 loaded via a namespace (and not attached): [1] gtools_2.7.0 tools_2.15.0 I am running Java version "1.6.0_16" I can connect to Bloomberg via the API Does anyone have any ideas? Gordon Morrison
______________________________________________________________________
This e-mail and any attachments may contain confidential...{{dropped:22}}
_______________________________________________
R-SIG-Finance at r-project.org 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.
_______________________________________________ R-SIG-Finance at r-project.org 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. ______________________________________________________________________ This e-mail and any attachments may contain confidential or privileged information. It is intended solely for the ordinary user of the e-mail address to which it is addressed. If you are not the intended recipient, please contact the sender immediately and delete this message. Any unauthorised use or dissemination of this message in whole or in part is strictly prohibited. Unless otherwise stated, any views expressed are those of the individual sender and not of FTSE. FTSE does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference. FTSE is a limited liability company registered in England and Wales under registered number 03108236 with its registered office at 12th Floor, 10 Upper Bank Street, Canary Wharf, London, E14 5NP. FTSE's VAT number is: GB 740 4594 35. For further information about FTSE visit http://www.ftse.com _______________________________________________ R-SIG-Finance at r-project.org 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. ______________________________________________________________________ This e-mail and any attachments may contain confidential or privileged information. It is intended solely for the ordinary user of the e-mail address to which it is addressed. If you are not the intended recipient, please contact the sender immediately and delete this message. Any unauthorised use or dissemination of this message in whole or in part is strictly prohibited. Unless otherwise stated, any views expressed are those of the individual sender and not of FTSE. FTSE does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference. FTSE is a limited liability company registered in England and Wales under registered number 03108236 with its registered office at 12th Floor, 10 Upper Bank Street, Canary Wharf, London, E14 5NP. FTSE's VAT number is: GB 740 4594 35. For further information about FTSE visit http://www.ftse.com _______________________________________________ R-SIG-Finance at r-project.org 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. ______________________________________________________________________ This e-mail and any attachments may contain confidential or privileged information. It is intended solely for the ordinary user of the e-mail address to which it is addressed. If you are not the intended recipient, please contact the sender immediately and delete this message. Any unauthorised use or dissemination of this message in whole or in part is strictly prohibited. Unless otherwise stated, any views expressed are those of the individual sender and not of FTSE. FTSE does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference. FTSE is a limited liability company registered in England and Wales under registered number 03108236 with its registered office at 12th Floor, 10 Upper Bank Street, Canary Wharf, London, E14 5NP. FTSE's VAT number is: GB 740 4594 35. For further information about FTSE visit http://www.ftse.com