| To: | <tom.rose@xxxxxxxxxxxx> |
|---|---|
| Subject: | RE: [cinjug-users] How much data can session store? |
| From: | lei.han@xxxxxxxxxxxxx |
| Date: | Wed, 2 Nov 2005 08:56:02 -0500 |
| Cc: | users@xxxxxxxxxx |
| Delivered-to: | mailing list users@cinjug.org |
| In-reply-to: | <003601c5df62$a68f85e0$ab05a8c0@masoncorp.ikonect.com> |
| Mailing-list: | contact users-help@cinjug.org; run by ezmlm |
|
Besides serialization and deserialization of session data during fail over, any other downsides of using session data against using regular caching utilities? I can make the heavy weight data in session as transient to avoid serialization/deserializtion and have a way to recover it in case of failover. Particularly is it true that the size of session data is also only limited to JVM? Thanks! Lei Han || Home : (248) 6149056 || PCS : (513)6074271
Lei, Not sure about a way to limit the session size in a particular container. However, best practice is to keep HTTPSession as small as possible for each user. If configured for persistent session, remember it will get serialized and stored, so from a query and store perspective the larger it gets the slower it will be to perform these operations. When you get into a clustered configuration, you may have in-memory session replication for fail over, or just persisted as noted before. So to answer you question, you need to get familiar with what is being done with HTTPSession in your particular container configuration. Then if the HTTPSession behavior (persistent, replication, etc) is consistent with the behavior required for the cached data, there is no advantage to building another cache. If the data does not have the same requirements, then yes there may be advantage to creating another cache. Regardless of what is chosen, you will still have to performance profile the application to see how its behaving, and ultimate tuning of the JVM is always a good idea. Best Regards, Tom --
From: lei.han@xxxxxxxxxxxxx [mailto:lei.han@xxxxxxxxxxxxx] Sent: Tuesday, November 01, 2005 9:55 PM To: users@xxxxxxxxxx Subject: [cinjug-users] How much data can session store? How can I find out the size limit of session data for my container? If I write a cache utitlity, theroetically it can hold data up to JVM limited size. How about session? If I store the data in session, what's the limit? And would it substantially affect performance than storing it in regular cache instead? Thanks! Lei Han |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: [cinjug-users] How much data can session store?, Amol Deshmukh |
|---|---|
| Next by Date: | RE: [cinjug-users] How much data can session store?, Mascolino, Mark R. |
| Previous by Thread: | RE: [cinjug-users] How much data can session store?, Tom Rose |
| Next by Thread: | RE: [cinjug-users] How much data can session store?, Amol Deshmukh |
| Indexes: | [Date] [Thread] [Top] [All Lists] |