This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This program demonstrates a memory leak in Hazelcast 2.5 | |
* HTTP session clustering class com.hazelcast.web.WebFilter. | |
* | |
* It simulates a servlet container environment, passing dummy | |
* (mostly empty) HttpServletRequest and HttpServletResponse | |
* instances through the WebFilter class. It is currently coded | |
* to maintain a constant 2000 active sessions at a time. When | |
* the 2000 session limit is reached, the oldest session is removed | |
* and invalidated before a new one is added. A new request/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.Serializable; | |
import java.util.Random; | |
import java.util.UUID; | |
import com.hazelcast.core.Hazelcast; | |
import com.hazelcast.core.IMap; | |
import com.hazelcast.query.EntryObject; | |
import com.hazelcast.query.Predicate; | |
import com.hazelcast.query.PredicateBuilder; |