Results 1 to 10 of 10
- 10-26-2009, 10:18 AM #1
Member
- Join Date
- Oct 2009
- Posts
- 30
- Rep Power
- 0
Response from Tomcat Server slow and Invariable to JSP
Hello,
I have developed an application which is an INTRANET PORTAL in advanced java. My database is MySQL and Server is Tomcat V5.5
The problem is server response is very slow and sometimes it stops responding, also when I try accessing it from remote machine I don't get response from my server.
Please help...
Thank and Regards
- 10-26-2009, 10:20 AM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Find a profiling tool and try to pin point the source of the problem.
- 10-26-2009, 10:26 AM #3
Member
- Join Date
- Oct 2009
- Posts
- 30
- Rep Power
- 0
Please Clarify the profiling tool :confused:
I have developed my application in java Eclipse, using MySQL Database and TOMCAT 5.5 Server
- 10-26-2009, 10:31 AM #4
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
You'll have to google for it. We can't see any of your codes so we can't say if it's your code that is the problem or perhaps your database is not well indexed, non optimal SQL, connections left unclosed e.t.c.
- 10-26-2009, 10:47 AM #5
Member
- Join Date
- Oct 2009
- Posts
- 30
- Rep Power
- 0
I am a college student, I don't know how to structure the database efficiently
and also the indexing and optimization of SQL
I am giving you the project theme::
It maintains all the information of employees and students, like leave and salaries under which authority the employee or under which the student belongs. Also daily attendance of all, basic finance related issues.
Also when I try to access my application from remote server it don't work. It was used to work before. Dont know wats the problem is
:confused::confused::confused:
Thanks and Regards
- 10-26-2009, 10:56 AM #6
how u have desined the database? how many records are there?
how u are connecting to remote server?Ramya:cool:
- 10-26-2009, 11:05 AM #7
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Read the relevant sections in the MySQL ref manual for making efficient database queries and indexes.
For the remote connection, you will need to provide details on how you are miking the connection and the error messages you are getting.
- 10-27-2009, 05:32 AM #8
Member
- Join Date
- Oct 2009
- Posts
- 30
- Rep Power
- 0
Yes I have designed the database....
I am not using indexing techniques
I am using following code for database connection
Class.forName("com.mysql.jdbc.Driver").newInstance ();
conn = DriverManager.getConnection("jdbc:mysql://localhost/magicnet?user=isf&password=isf123");
Is der any other efficient way for connection to the database?
:confused:
TO connect to remote server I copy the war file to webapps folder of TOMCAT, then I start the server and write URL into the browser...Last edited by jason.3dmagic; 10-27-2009 at 05:36 AM.
- 10-27-2009, 08:59 AM #9
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
You can use a datasource. Also make sure you closed all connections in a finally block. Read the MySQL refmanual like I already suggested to find out how to tune your tables for efficiency.
You don't move the war file to all computers that want to connect to the system. See in that path you have localhost as the database host and the client computers will not be having MySQL installed on them. They shouldn't even have Tomcat on them.
Keep your war file on the one computer that contains tomcat and make sure to provide the right connection string.
- 04-22-2010, 03:13 AM #10
Member
- Join Date
- Apr 2010
- Location
- Philippines
- Posts
- 7
- Rep Power
- 0
Improve Java Web Development Server Startup Time
I found this page and it helped me speed up my server.
Here's the link.
Similar Threads
-
Server returned HTTP response code: 500.. i need help
By hardc0d3r in forum Java ServletReplies: 9Last Post: 03-12-2012, 08:08 PM -
Server returned HTTP response code: 500
By fuliangQ in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 04-09-2009, 03:55 AM -
Reg Tomcat in Itaniumn Server
By ars3181 in forum Advanced JavaReplies: 0Last Post: 11-24-2008, 05:53 AM -
java.io.Exception: Server returned HTTP response code: 403
By navishkumarb in forum Advanced JavaReplies: 1Last Post: 01-05-2008, 01:33 PM -
Server returned HTTP response code: 500
By Heather in forum Java ServletReplies: 1Last Post: 07-09-2007, 04:32 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks