Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 67185 invoked from network); 29 Nov 2010 21:51:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Nov 2010 21:51:38 -0000 Received: (qmail 41201 invoked by uid 500); 29 Nov 2010 21:51:36 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 41181 invoked by uid 500); 29 Nov 2010 21:51:36 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 41167 invoked by uid 99); 29 Nov 2010 21:51:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 21:51:36 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jasonmpell@gmail.com designates 209.85.160.172 as permitted sender) Received: from [209.85.160.172] (HELO mail-gy0-f172.google.com) (209.85.160.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 21:51:31 +0000 Received: by gyb13 with SMTP id 13so2662234gyb.31 for ; Mon, 29 Nov 2010 13:51:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=HmABN+rmZTErT78gG+CEQuPBLHphXUw7d7/10T1EF4U=; b=vsGvO8z90l4zmfQ6FWl/kNghjRVPa1C+JoBcbKWK8DuSWIBy7aR3H7Dq+5GucO9PLP iRoTvx96iP5qHRmKA7lbblz9T8lwKsvcK/yJNPB5uNGihY8IUHZcPo68RK63htCCikif +HWvye3vSUvykHBGEzJI3+i47IjFZdK6EbaFo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=hx57o/CK7qqUDwvHwYvBw/A10PMbbaa216iMzQTo3g8gtESGI5XmHSMa01JMTy8BCW PoIKEHJd5mj/mA4Lp331roEXy5ofnW0bkbp801IigJjwoU8RhZbbEb3/AzL4TQ0S9ZeF 1oopX7Evv7XixanGmvrYqRht0nJ6TDG3qMP9c= MIME-Version: 1.0 Received: by 10.151.98.15 with SMTP id a15mr11104676ybm.287.1291067470316; Mon, 29 Nov 2010 13:51:10 -0800 (PST) Received: by 10.151.109.5 with HTTP; Mon, 29 Nov 2010 13:51:10 -0800 (PST) In-Reply-To: References: <0BCB9213-40DE-4EFC-BF25-40146C7158B1@gmail.com> <6DC2B658-E3AE-48E9-A100-BEE29F68C3D9@gmail.com> Date: Tue, 30 Nov 2010 08:51:10 +1100 Message-ID: Subject: Re: Issues getting JNA to work correctly under centos 5.5 using cassandra 0.7.0-rc1 and JNA 2.7.3 From: jasonmpell@gmail.com To: "user@cassandra.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, Thanks for that your suggestions worked a treat. I created a new cassandra user and set the value to unlimited and I get the desired log: INFO 08:49:50,204 JNA mlockall successful On Tue, Nov 30, 2010 at 7:56 AM, Jason Pell wrote: > Awesome thanks will make the changes > > So is the man page inaccurate? Or is jna doing something wrong? > > Sent from my iPhone > > On Nov 30, 2010, at 7:28, Nate McCall wrote: > >> Ok, I was able to reproduce this with "0" as the value. Changing it to >> "unlimited" will make this go away. A closer reading of the >> limits.conf man page seems to leave some ambiguity when taken with the >> examples: >> "All items support the values -1, unlimited or infinity indicating no >> limit, except for priority and nice." >> >> I would recommend tightening this to a specific user. The line I ended >> up with for the "cassandra" user was: >> >> cassandra =A0 =A0 =A0 =A0- =A0 =A0 =A0 memlock =A0 =A0 =A0 unlimited >> >> You probably want to add a line for nofile in there at ~ 16384 as well >> while your there as that can be an issue depending on load. >> >> >> >> On Mon, Nov 29, 2010 at 1:59 PM, Jason Pell wrote: >>> * =A0 =A0 =A0 =A0 =A0 =A0 =A0 - =A0 =A0 =A0 memlock =A0 =A0 =A0 =A0 0 >>> >>> >>> On Tue, Nov 30, 2010 at 4:40 AM, Nate McCall wrote: >>>> What does the current line(s) in limits.conf look like? >>>> >>>> On Mon, Nov 29, 2010 at 2:01 AM, =A0 wrote: >>>>> I checked and /etc/security/limits.conf on redhat supports zero (0) t= o >>>>> mean unlimited. =A0Here is the sample from the man page. =A0Notice th= e >>>>> soft core entry. >>>>> >>>>> EXAMPLES >>>>> =A0 =A0 =A0 These are some example lines which might be specified in >>>>> =A0 =A0 =A0 /etc/security/limits.conf. >>>>> >>>>> =A0 =A0 =A0 * =A0 =A0 =A0 =A0 =A0 =A0 =A0 soft =A0 =A0core =A0 =A0 = =A0 =A0 =A0 =A00 >>>>> =A0 =A0 =A0 * =A0 =A0 =A0 =A0 =A0 =A0 =A0 hard =A0 =A0rss =A0 =A0 =A0= =A0 =A0 =A0 10000 >>>>> =A0 =A0 =A0 @student =A0 =A0 =A0 =A0hard =A0 =A0nproc =A0 =A0 =A0 =A0= =A0 20 >>>>> =A0 =A0 =A0 @faculty =A0 =A0 =A0 =A0soft =A0 =A0nproc =A0 =A0 =A0 =A0= =A0 20 >>>>> =A0 =A0 =A0 @faculty =A0 =A0 =A0 =A0hard =A0 =A0nproc =A0 =A0 =A0 =A0= =A0 50 >>>>> =A0 =A0 =A0 ftp =A0 =A0 =A0 =A0 =A0 =A0 hard =A0 =A0nproc =A0 =A0 =A0= =A0 =A0 0 >>>>> =A0 =A0 =A0 @student =A0 =A0 =A0 =A0- =A0 =A0 =A0 maxlogins =A0 =A0 = =A0 4 >>>>> >>>>> >>>>> >>>>> On Mon, Nov 29, 2010 at 6:51 AM, Jason Pell wr= ote: >>>>>> Ok that's a good point i will check - I am not sure. >>>>>> >>>>>> Sent from my iPhone >>>>>> On Nov 29, 2010, at 5:53, Tyler Hobbs wrote: >>>>>> >>>>>> I'm not familiar with ulimit on RedHat systems, but are you sure you >>>>>> have ulimit set correctly? Did you set it to '0' or 'unlimited'? =A0= I ask >>>>>> because on a Debian system, I get this: >>>>>> >>>>>> thobbs@~ $ ulimit -l >>>>>> unlimited >>>>>> >>>>>> Where you said that you got back '0'. >>>>>> >>>>>> - Tyler >>>>>> >>>>>> On Sun, Nov 28, 2010 at 1:15 AM, Jason Pell wro= te: >>>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I have selinux disabled via /etc/sysconfig/selinux already. =A0But = I did >>>>>>> as you suggested anyway, even restarted the whole machine again too >>>>>>> and still no difference. =A0Do you know if there is a way to discov= er >>>>>>> exactly what this error means? >>>>>>> >>>>>>> THanks >>>>>>> Jason >>>>>>> >>>>>>> On Sat, Nov 27, 2010 at 3:59 AM, Nate McCall wro= te: >>>>>>>> This might be an issue with selinux. You can try this quickly to >>>>>>>> temporarily disable selinux enforcement: >>>>>>>> /usr/sbin/setenforce 0 =A0(as root) >>>>>>>> >>>>>>>> and then start cassandra as your user. >>>>>>>> >>>>>>>> On Fri, Nov 26, 2010 at 1:00 AM, Jason Pell >>>>>>>> wrote: >>>>>>>>> I restarted the box :-) so it's well and truly set >>>>>>>>> >>>>>>>>> Sent from my iPhone >>>>>>>>> On Nov 26, 2010, at 17:57, Brandon Williams wr= ote: >>>>>>>>> >>>>>>>>> On Thu, Nov 25, 2010 at 10:02 PM, Jason Pell >>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>> Hi, >>>>>>>>>> >>>>>>>>>> I have set the memlock limit to unlimited in /etc/security/limit= s.conf >>>>>>>>>> >>>>>>>>>> [developr@localhost apache-cassandra-0.7.0-rc1]$ ulimit -l >>>>>>>>>> 0 >>>>>>>>>> >>>>>>>>>> Running as a non root user gets me a Unknown mlockall error 1 >>>>>>>>> >>>>>>>>> Have you tried logging out and back in after changing limits.conf= ? >>>>>>>>> -Brandon >>>>>>>> >>>>>> >>>>>> >>>>> >>>> >>> >