kstyrc / embedded-redis

Redis embedded server for Java integration testing
840 stars 368 forks source link

Running on Windows Server 2008 #70

Open dalilagauge opened 8 years ago

dalilagauge commented 8 years ago

I have Jenkins installed on Windows Server 2008. When I run my unit tests on local machine, I have success. But, when I run on Jenkins I have this error:

java.lang.RuntimeException: Can't start redis server. Check logs for details. at redis.embedded.AbstractRedisInstance.awaitRedisServerReady(AbstractRedisInstance.java:61) at redis.embedded.AbstractRedisInstance.start(AbstractRedisInstance.java:39) at redis.embedded.RedisServer.start(RedisServer.java:9) at teste.Main.main(Main.java:13)

The settings of RedisServer are the same. What is wrong? I try to show a complete log error, but I dont get.

casidiablo commented 8 years ago

Make sure there's no redis process running, bound to the same port. Also, make sure to kill the redis processes once you are done with them.

See https://github.com/kstyrc/embedded-redis/issues/51

dalilagauge commented 8 years ago

After a long time of tests.....I have success! I read #51 and see the problem with maxheap. I set the value of maxheap and the problem is solved. The command is:

RedisServer server = new RedisServerBuilder().setting("maxheap 512Mb").port(6370).build();

Thanks for your help! I hope help other people.

jaceko commented 8 years ago

Thanks @dalilagauge for posting this. It helped me as well.