cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From horschi <hors...@gmail.com>
Subject Re: How to minimize Cassandra memory usage for test environment?
Date Tue, 09 Jun 2015 10:57:53 GMT
Hi Eax,

are you truncating/dropping tables between tests? Are your issues perhaps
related to that?

If you are, you should disable autoSnapshots and enable -DunsafeSystem=true
to make it run smoother.

kind regards,
Christian

On Tue, Jun 9, 2015 at 11:25 AM, Jason Wee <peichieh@gmail.com> wrote:

> for a start, maybe you can see the setting use by raspberry pi project,
> for instance
> http://ac31004.blogspot.com/2012/05/apache-cassandra-on-raspberry-pi.html
>
> you can look at these two files, to tune down the settings for test
> environment.
> cassandra-env.sh
> cassandra.yaml
>
> hth
>
> jason
>
> On Tue, Jun 9, 2015 at 3:59 PM, Eax Melanhovich <mail@eax.me> wrote:
>
>> Hello.
>>
>> We are running integration tests, using real Cassandra (not a mock)
>> under Vagrant. MAX_HEAP_SIZE is set to 500M. As I discovered, lower
>> value causes 'out of memory' after some time.
>>
>> Could memory usage be decreased somehow? Developers don't usually have
>> a lot of free RAM and performance obviously is not an issue in this
>> case.
>>
>> --
>> Best regards,
>> Eax Melanhovich
>> http://eax.me/
>>
>
>

Mime
View raw message