Installing Sun JDK 1.6 worked for me. Thank you.
Best regards, David Torres Computer Scientist Renuda UK tel: +44 (0)20 3371 1709 web: www.renuda.com <http://www.renuda.com/> Renuda UK is registered in England and Wales. Company number 6218863. VAT registration number 918 6490 91. Registered office: 35 Charleville Road, London W14 9JJ, UK. Renuda registered trade mark. ________________________________ From: Steve Swinsburg [steve.swinsb...@gmail.com] Sent: 25 July 2013 03:41 To: Branden Visser Cc: David Torres; oae-dev@collab.sakaiproject.org Subject: Re: [oae-dev] Out of memory error when starting Cassandra I've just hit the seg fault as well, using OpenJDK on a Ubuntu box. The fix is to change the stack size as described here: http://stackoverflow.com/a/14447535/1852070 Apparently this fix may be required for both Oracle Java and OpenJDK. Is there a strict requirement on Oracle Java for any other part of OAE? cheers, Steve On Thu, Jul 25, 2013 at 3:28 AM, Branden Visser <mrvis...@gmail.com<mailto:mrvis...@gmail.com>> wrote: Ok, segmentation fault, we're getting somewhere :) http://stackoverflow.com/questions/11901421/cannot-start-cassandra-db-using-bin-cassandra It's likely switching to Oracle Java 6 will fix the problem on its own, and should give a more common environment in which to run Cassandra. Let me know how that goes! Cheers, Branden On Wed, Jul 24, 2013 at 1:12 PM, David Torres <david.tor...@renuda.com<mailto:david.tor...@renuda.com>> wrote: > apache-cassandra-1.2.6/bin/cassandra, not 1.2.2, right? > > Yes, 1.2.6. I copied the command from the development machine by mistake > where I have 1.2.2 yet. > > > My best guess right now is that the JVM is failing to initialize. > Can't say I've ever seen it do that without spitting something out to > stdout. Can you try: > > 1. ps -A | grep java - to see if there is already a cassandra java > process running for some reason > > The only java process that is running is for ElasticSearch. I killed it but > it didn't make the difference. > > 2. top - to see how much free memory you have > before starting it up. If you can't commit 1GB the JVM won't be able > to start > > Mem: 2069368k total, 985308k used, 1084060k free > It is on the limit, probably is the reason. > > > 3. Start cassandra with the "-f" parameter to start it in the > foreground -- might get you some better logging or a more obvious > reaction: > > apache-cassandra-1.2.6/bin/cassandra -f > > That helped, it is providing a second output line: > ``` > xss = -ea -javaagent:apache-cassandra-1.2.6/bin/../lib/jamm-0.2.5.jar > -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms1010M -Xmx1010M > -Xmn252M -XX:+HeapDumpOnOutOfMemoryError -Xss180k > Segmentation fault > ``` > Any idea after seeing this Segmentation fault? > > 4. What version of Java are you running? It's recommended to run > Oracle Java 6, though we've had development/QA-environment success > with OpenJDK 6, not sure that we've ever tried Cassandra 1.2 with Java > 7 (others may chime in with more experiences, though) > > `java -version` plotted: > ``` > java version "1.6.0_24" > OpenJDK Runtime Environment (IcedTea6 1.11.5) (Gentoo build 1.6.0_24-b24) > OpenJDK Server VM (build 20.0-b12, mixed mode) > ``` > > > Thank you for your help. > > Best regards, > > David Torres > > > Computer Scientist > Renuda UK > > > tel: +44 (0)20 3371 1709 > web: www.renuda.com<http://www.renuda.com> > > > Renuda UK is registered in England and Wales. Company number 6218863. > VAT registration number 918 6490 91. Registered office: 35 Charleville Road, > London W14 9JJ, UK. > Renuda registered trade mark. > > ________________________________________ > From: Branden Visser [mrvis...@gmail.com<mailto:mrvis...@gmail.com>] > Sent: 24 July 2013 17:33 > > To: David Torres > Cc: oae-dev@collab.sakaiproject.org<mailto:oae-dev@collab.sakaiproject.org> > Subject: Re: [oae-dev] Out of memory error when starting Cassandra > > On Wed, Jul 24, 2013 at 12:04 PM, David Torres > <david.tor...@renuda.com<mailto:david.tor...@renuda.com>> > wrote: >> Hello again, >> >> Thank you for the information about the specification. We will look into >> that. >> >> >> >> How are you starting Cassandra? Is this Ubuntu, MacOSX? Was it installed >> from a tarball or through a package manager of some sort? >> >> I downloaded it from the link provided on the OAE installation guide (so, >> a >> .tar). I am starting it by executing this command: >> `apache-cassandra-1.2.2/bin/cassandra` >> The system is a Gentoo. >> > > apache-cassandra-1.2.6/bin/cassandra, not 1.2.2, right? > >> Did you change the data and commitlog directories before or after you >> tried >> troubleshooting startup problems? >> >> I changed them after. I expected that would be the problem, that the log >> files couldn't be generated. >> >> The cassandra.yaml and log4j-server.properties file would be useful if you >> can attach that for me. >> >> Please, find them attached. >> >> Thank you for your help. >> > > My best guess right now is that the JVM is failing to initialize. > Can't say I've ever seen it do that without spitting something out to > stdout. Can you try: > > 1. ps -A | grep java - to see if there is already a cassandra java > process running for some reason > 2. top - to see how much free memory you have > before starting it up. If you can't commit 1GB the JVM won't be able > to start > 3. Start cassandra with the "-f" parameter to start it in the > foreground -- might get you some better logging or a more obvious > reaction: > > apache-cassandra-1.2.6/bin/cassandra -f > > 4. What version of Java are you running? It's recommended to run > Oracle Java 6, though we've had development/QA-environment success > with OpenJDK 6, not sure that we've ever tried Cassandra 1.2 with Java > 7 (others may chime in with more experiences, though) > > Hope that helps, > Branden > >> >> Best regards, >> >> >> David Torres >> >> >> Computer Scientist >> Renuda UK >> >> >> tel: +44 (0)20 3371 1709 >> web: www.renuda.com<http://www.renuda.com> >> >> >> Renuda UK is registered in England and Wales. Company number 6218863. >> VAT registration number 918 6490 91. Registered office: 35 Charleville >> Road, >> London W14 9JJ, UK. >> Renuda registered trade mark. >> >> ________________________________________ >> From: Branden Visser [mrvis...@gmail.com<mailto:mrvis...@gmail.com>] >> Sent: 24 July 2013 16:34 >> >> To: David Torres >> Cc: oae-dev@collab.sakaiproject.org<mailto:oae-dev@collab.sakaiproject.org> >> Subject: Re: [oae-dev] Out of memory error when starting Cassandra >> >> Hi David, >> >> On Wed, Jul 24, 2013 at 11:12 AM, David Torres >> <david.tor...@renuda.com<mailto:david.tor...@renuda.com>> >> wrote: >>> Hello again, >>> >>> I have Cassandra working on a development machine and when I started it I >>> got the same line, but then output a lot of other stuff. >>> >>> The problem is that in the production machine where I am working now it >>> only print that first line: >>> xss = -ea -javaagent:bin/../lib/jamm-0.2.5.jar -XX:+UseThreadPriorities >>> -XX:ThreadPriorityPolicy=42 -Xms1010M -Xmx1010M -Xmn252M >>> -XX:+HeapDumpOnOutOfMemoryError -Xss180k >>> >> >> Just to be sure, you'll want more than 2GB of RAM on a production >> machine for your Cassandra node. Please see this for more information: >> http://wiki.apache.org/cassandra/CassandraHardware >> >>> After that is not printing anything else, whereas according to the >>> messages displayed on the development machine the next thing it should >>> appeared would be: >>> xxxxx@yyyyyyy:~/OAEdependencies$ INFO 16:04:52,712 Logging initialized >>> INFO 16:04:52,723 JVM vendor/version: Java HotSpot(TM) 64-Bit Server >>> VM/1.6.0_35 >>> >>> So apparently, there is some problem with initialize the log. I changed >>> the reference to the system.log file on `conf/log4j-server.properties`. >>> And >>> I changed the reference to the data directory, the saved_caches directory >>> and the commitlog file on `conf/cassandra.yaml`. Now they are pointing to >>> locations where I am sure I have permission to write. >> >> How are you starting Cassandra? Is this Ubuntu, MacOSX? Was it >> installed from a tarball or through a package manager of some sort? >> >> Did you change the data and commitlog directories before or after you >> tried troubleshooting startup problems? >> >> The cassandra.yaml and log4j-server.properties file would be useful if >> you can attach that for me. >> >> Hope that helps, >> Branden >> >>> >>> Any idea of what could be happening? >>> >>> Best regards, >>> >>> >>> David Torres >>> >>> >>> Computer Scientist >>> Renuda UK >>> >>> >>> tel: +44 (0)20 3371 1709 >>> web: www.renuda.com<http://www.renuda.com> >>> >>> >>> Renuda UK is registered in England and Wales. Company number 6218863. >>> VAT registration number 918 6490 91. Registered office: 35 Charleville >>> Road, London W14 9JJ, UK. >>> Renuda registered trade mark. >>> >>> ________________________________________ >>> From: Branden Visser [mrvis...@gmail.com<mailto:mrvis...@gmail.com>] >>> Sent: 24 July 2013 15:34 >>> To: David Torres >>> Cc: oae-dev@collab.sakaiproject.org<mailto:oae-dev@collab.sakaiproject.org> >>> Subject: Re: [oae-dev] Out of memory error when starting Cassandra >>> >>> Hi David, >>> >>> That output is not an error, it is just letting you know what the >>> start-up options for Cassandra were. >>> >>> The options look ok, can you confirm in the Cassandra log file if it >>> started up successfully or what errors it had starting up? Depending >>> on how it was installed, the log file could be located in: >>> >>> /var/log/cassandra >>> /path/to/cassandra/log/cassandra >>> >>> There will be both a system.log and cassandra.log. Both will be useful >>> to find any startup issues. >>> >>> Thanks, >>> Branden >>> >>> >>> On Wed, Jul 24, 2013 at 10:20 AM, David Torres >>> <david.tor...@renuda.com<mailto:david.tor...@renuda.com>> >>> wrote: >>>> Hello list, >>>> >>>> I am installing OAE on a machine for the first time, following this >>>> guide: >>>> https://github.com/oaeproject/Hilary/blob/master/README.md >>>> >>>> This machine has 2GB of RAM. >>>> Currently, RabbitMQ and Elastic Search are running, but for some reason >>>> Cassandra was not. So I started Cassandra again and got this error: >>>> >>>> xss = -ea -javaagent:apache-cassandra-1.2.6/bin/../lib/jamm-0.2.5.jar >>>> -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms1010M -Xmx1010M >>>> -Xmn252M -XX:+HeapDumpOnOutOfMemoryError -Xss180k >>>> >>>> Any idea about this? >>>> >>>> Thank you in advance. >>>> >>>> Best regards, >>>> >>>> >>>> David Torres >>>> >>>> Computer Scientist >>>> Renuda UK >>>> >>>> tel: +44 (0)20 3371 1709<tel:%2B44%20%280%2920%203371%201709> >>>> web: www.renuda.com<http://www.renuda.com> >>>> >>>> Renuda UK is registered in England and Wales. Company number 6218863. >>>> VAT registration number 918 6490 91. Registered office: 35 Charleville >>>> Road, >>>> London W14 9JJ, UK. >>>> Renuda registered trade mark. >>>> >>>> >>>> _______________________________________________ >>>> oae-dev mailing list >>>> oae-dev@collab.sakaiproject.org<mailto:oae-dev@collab.sakaiproject.org> >>>> http://collab.sakaiproject.org/mailman/listinfo/oae-dev >>>> _______________________________________________ oae-dev mailing list oae-dev@collab.sakaiproject.org<mailto:oae-dev@collab.sakaiproject.org> http://collab.sakaiproject.org/mailman/listinfo/oae-dev
_______________________________________________ oae-dev mailing list oae-dev@collab.sakaiproject.org http://collab.sakaiproject.org/mailman/listinfo/oae-dev