anupa oru

Ranch Hand
+ Follow
since Jan 15, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by anupa oru

Hey All,

What would be DatePattern to roll over logs at 5AM every day, I know we can set DatePattern to certain string to rollover logs daily,mid day,mig night...is there a pattern to do the roll over at specified time. If this is possible with appenders other than DailyRollingFileAppender please let me know too.

Thank you so much,
Anu
We had similar type of situation where memory was 50% use but ran into outofmemory. It turned out to be when JVM allocate memory to objects, short lived objects will go into YoungGeneration, long lived ones goes into oldGeneration. Even though memory was at 50% usage, we ran out of young generation. The way I have determined that was by dumping GC logging, as soon as we get OutOfMemory error we looked at gc.log and saw that we were at 100% of young generation(default is 64MB). You can have below setting run.bat if it's windows, run.sh if it's linux.

-verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+PrintTenuringDistribution -Xloggc:gc.log

This will create gc.log that would display that's being used at any given time, as soon as you get outofmemory error analyze the gc.log and see if you are running out of space in one of the generations.
useful links:
http://wiki.jboss.org/wiki/Wiki.jsp?page=TuneVMGarbageCollection

Thanks,
Anu
11 years ago
The thing that you said about java.io.File, I read somewhere else too storing Blob in file would be more efficient than saving it in database. Do you think that's a valid statement though, I would think writing to File would be more time consuming since you need to deal with File Handlers,reading file etc. If you were to use java.io.File how would do manage file, do you write Blob to File vice versa, are there any API methods for these or do we need to write custom logic for this.
11 years ago
Thanks William for your awesome feedback.

I will try this cache and let you know how it works. Do you think this would be the best caching mechanism that's out there for storing large Blobs? Keep me posted if you find anything else interested, since we are still in evaluation phase we have time to experiment with different caches and come to consensus.

Thanks again.
Anu
11 years ago
Hey All,

Recently we have discovered that with hight volume of traffic for Oracle 10g database, we were running into Data fragmentation issues because we are storing Blob that avgs 140k. The issue as I understood,The way application works is whenever user comes to site & browse thru we insert/update their session with pertinent info, after 20mins of idle time blob will be deleted. The issue as I understood, when we do delete it's removing Blobs and creating holes, next insert/update scaning the whole table till it finds appropriate hole, which is causing slowness. It turned out to be interal Oracle Bug, so we were looking at other alternatives to save this huge blob. I heard JCS, In-Memory caching mechanisms, we are evaluating which one to use or change the whole application to minimize Blob. My question is, How do you deal with session management for huge blob, hoping that someone could shed light on the best practise.

Thanks,
Anu
11 years ago
Hi All,

i would like contribute to open source projects in my free time to enhance my skills, but I just don't know how, I am hoping that you will give me guidence as to how can I contribute. Is it just searching in google and visiting open source website to see the software and fix bugs as I find, or is there a central repository with all open source softwares listed.

Any help is greatly appreciated.

Thanks alot,
Anu
Hi Folks,

I am using TreeCacheAOP Jboss Cache to cache read-only data in JBoss 4.0, I am caching a object and reading that from cache at some point.

Basically cached Object is serializable and I want it to be seriable since my front-end environment will only work with Serialized objects as far as middleware concern. My question would be can I cache serializable objects in TreeCacheAOP and access them at client. I tried that and I got the following exception at client


What would be work-aorund this problem.

Please let me know ASAP.
Thanks
13 years ago
Hi Guys,

I had been browing sites for JBoss Tree Cache AOP which clearly mention 1 point to me is that we can use it as standalone process, as MBean in JBoss etc. My specific is I need Tree Cache AOP in JBoss so I would need docs on JBoss Tree Cache to use as MBean in JBoss.Please guys direct me to one.

Thanks alot,
Anu
13 years ago
Hi Guys,

as subsequent to question I posted with subject startup clases in Jboss, I would like to TreeCacheAOP which is JBoss POJO cache to cache start up data. I googled but didn't find one with concrete examples, all of them have so much of thoery. Basically I would like to go for TreeCacheAOP JBoss Cache because of limitation TreeCache has such as maintaining relationships, serialization etc. I also heard people saying they had some Deadlock issues when they wanted to updation to JBoss TreeCache but in our case it's read-only data meaning it will be saved/cached at server startup with data from backend systems. Bottomline I need tutorial on TreeCacheAOP which will have some practical examples, and also would like to know Cons for using TreeCacheAOP from experts if there any.

Thanks alot for your help as you always.

Anu
13 years ago
Hi Guys,

I would like to load class at Jboss start up which will call backend systems and get some static data and I need to save that info in some variable. After server actually started I need to access loaded startup class variable to get that info, I know I have to use MBean for this but not quite sure specifics of it, so please suggest me best ways of doing this. I need to make sure this approach works for clustering, I am using JBoss 4.0.

Thanks alot,
Anu
13 years ago
Waiting for ur responses....
Thanks
Hi Pradip,

Now exception from container doesn't have sql exception in chain as

As you can see all exceptions that causes exception are included in exception message when container returns to bean, but JBOSS internal classes logging messages are

so as you can see exceptions are chained.

I am wondering why container is n't giving me chained exceptions, or am I need to do something to see chained exceptions. Since SQLException is root cause for this exception and included in message, I amn't calling any method on SQLException.

Thanks
Anu
Hi,
Do I need to call getNested() on exception thrown from container, I didn't get you can u please elaborate that. My question is though JBoss internal classes logging exception along with JBOSS RESOURCE EXCEPTION and SQLEXCEPTION in chain but when it comes to EJB Container it's including those in exception message. So Jboss internal classes log exception with Caused by:JBoss Reource Exception blah....blah with stack trace (has Cuased by SQLException: blah...).But when I catch that exception in POJO which calls bean,exception has "JBoss Reource Exception ","SQLException" in exception message not in the chain. Is this the way container supposed to throw or am I missing something. Right now to check database status I am checking exception message of container exception and looking for "Jboss Resource Exception" if so saying that DB is down. Is this proper way or am I missing something.

Thanks alot,
Anu
Hi Pradip:

I have 2 concerns.

1. JBoss 3.2.6 container is including all root exceptions (JBoss Resource Exception,SQLException) in message but not chaning those
2. regarding SQL error codes Oracle latest version is including "ORA-01034: Oracle not Available as error code" but previous version has something like "Io Exception: Network Adpater couldn't establish connection".Moreover I guess error code for SQLException is n't manadatory and I think they depend on backend database version also. But I would like to say DB is down even backend database (Oracle) version has been changed. So I was thinking of relying on JBoss Resource Exception which is caused by SQLException.

My concern is why container is including all exception is message but not chaining up those. Is this Ok?or Am I miss something. Right now I am checking in exception message (If exception chain isn't there)and checking for existence of JBossResourceException with "couldn't establish connection", if so saying DB is down. If given exception has exception chain checking for "same thing" in exception chain.

Please let me know Am I in right track.
Thanks alot,
Anu
Hi Pradip,
Thanks alot for ur reply, we have a requirement to throw App Specific Exception to client when DB is down(Even DB instance is n't up). Along those line I need to catch above mentioned exception and see if DB down is causing the exception. But interesting thing JBoss 3.2.6 container including all exceptions(JBoss Resource Exception and SQLException) in message but seems like not chaning those. Is this what container supposed to do? or Am I missing something.

Is going through Exception message to determine DB down is proper way?

Please let me know.
Thanks alot,
Anu