Prabhakar Rao

Ranch Hand
+ Follow
since Aug 23, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Prabhakar Rao

Thanks Macro,

I would like to provide the following additional information about the issue.

All the sockets in CLOSEWAIT state are TCP sockets for sure. When I was listing the CLOSEWAIT sockets using lsof I could see that they are of ipv6 type, [machinename]:webcache->pool-96-228-253-182.tampfl.fios.verizon.net:20559 (CLOSE_WAIT). This is for sure for some http request sent by client. Here I could not derive whether this is socket between client-host or balancer-host.

For how long do you experience these problems?


Once sockets goes to CLOSE_WAIT they are not getting freed, and once file descriptors exhausts tomcat is not coming up. Once I restart the server the issue again occurs from 24 hours to 48 hours time period. Our server gets around 2.5 lac requests.

Please give me a little detail about how to trace connections that cause problem.

Thanks,
Prabhakar
15 years ago
Hello all,

Our application is hosted on linux tomcat environment(Fedora and tomcat5x). We have two such setups fronted by load blancer.

The problem is tomcat is not apble to serve requests after sometime (like one day after is was started)

After our investigation we have found so many sockets waiting in CLOSEWAIT state. This causes so many file descripotrs in waiting state. Thus once file descriptors exhauts tomcat is failing to serve.

Currently we are restarting machines periodically to avoid the occurance.

Please suggets some permanent solution to this problem.

Also interested to know why the sockets going to CLOSEWAIT state.

Thanks,
Prabhakar
15 years ago
Hope you are accessing the page by using the following url.
http://localhost:8080/demo/<file>.jsp

Thanks,
Prabhakar
16 years ago
JSP
Hi,

Let it be file,doc...

Assuming you have total content in data(String obj), the following should work.
17 years ago
Hi,

Try this one.



Prabhakar
I am attaching the code that I was trying to run.
Seems some code is missing.
Is there any code written for checking no of words.
Also where the javascript function was called.

Please provide code written for that if any otherwise I would provide my code.

Thanks,

Prabhakar
Please try the following code and let me know if any problem occurs.
One of the screen in my application has a browse button and a preview button.

browse button is normal html browse button and preview button is to open a new window with the file selected by browse button.

my script could not open the file in the new window however if the file is a downloaded one it is opening in the new window.

What could be the reason behind this behavior.

Please suggest some workaround for the same.

Thanks

Prabhakar
Thanks very much for elaborating the process.

I got it working.
Could you please elaborate a bit about the process?
I have a webpage in which I have DIV.
On click of a button, I want to load that DIV with response from a resource on a different host/server.
When I tried this I got javascript error 'Permission denied'.
It is working for normal requests however it is failing for AJAX requests.
Please share your views on this problem.

Thanks.

Prabhakar
I want to mention i am using the following class structure.

Entity(abstract class of common attributes and Properties collection)
CompositeEntity(aggregation of Entity)
LeafEntity

I will populate the classes from XML which have properties defined.

Entities may be nested to whatever level possible.

While reading the XML I may encounter elements of same name,type... but with different properties.

This is the exact problem.

Can you suggest any solution now with respect to this.

Thanks.
17 years ago
Hi,

I have a requirement to store a large no of objects that represent entity and thier properties. Each entity can have properties.

I can have 100 entities of same type but each can have some different properties.

I populate all of them while starting up the application.

I need all the objects during runtime for lookup later.

How can I efficiently store them.

Thanks in advance,
Prabhakar.
17 years ago
Hi,

I am trying to parse an XML which can have following structure.


Here there are comtainment and associations
Also there is some ref that can refer to other element.

I want to parse the whole thing and build a menu heirarchy which is a composite menu and leaf menu structure.
Any menu can have properties collection.
Composite menu aggregation of menu.
Menu can be leaf or composite.

What I need is a good design how to do the entire thing.

parsing XML and building heirarchy.
I can do the whole in a single class.
But I may change the XML to database later.
Also I may put more elemnts in the XML.

please suggest a good design for this.

Thanks in advance.