1. WebServer Traffic & Analysis
1. INTRODUCTION
1.1 Project definition
Webserver Traffic Tracking will also track total no. of visitors , individual visitors , most
popular page , par page visitors , hour bases track no. of visitors , daily bases track no. of visitors
, weekly bases ,time duration and through all information in graphical format file, pie chart, bar
chart etc.
Webserver Traffic Tracking will try to analyse all run time errors that occur and will maintain
a log file that will produce to help the owner. Owner will also get notification via send Email and
SMS error occurred. log-file will contain name of page, line of code, root cost of exception ,
class , method , date and time so that helpful system admin solve the problem
A log entry may be used to generate information about the number of hits, visitors, visitor
duration, most requested page, visitor IP address, browser type and version, platform and details
of interaction with the web site
Many web applications owners has web server problem due to load and traffic on their websites.
Web-application some time hangs or work slow due to large nos. of web-application.
Webserver Traffic Tracking also manage which users visiting webpage and how many time. ,
view full report to see all of the pages in your website.
ITM UNIVERSE(MCA) Page 1
2. WebServer Traffic & Analysis
1.2 Existing system
Visitors whole information are display site owner and issue solver.
Visitors which page visit , most popular page , per day visitors , per page visitors etc.
Owner and issue solver receive message when run time errors occure.
1.3 Purpose
Maintaining the traffic & Analysis.
Track the traffic & control.
It will try to analyse all run time errors that occur and will maintain a log file .that will produce
to help the owner & Owner will also get notification via send Email error occurred.
Owner and issue solver receive message when run time errors occure.
Issue solver send the message owner when error is solve.
Owner get the information own site.
Know the our web application site performance
ITM UNIVERSE(MCA) Page 2
3. WebServer Traffic & Analysis
1.4 Scope
This system is basically for implementing at any web application.
Issue solver solve system problem when run time bug is generate.
Owner get the traffic details.
Admin view details when visitor visit site.
Individual visitor details are view.
1.5 Module of System
1.) Visitor traffic analysis
Total number of visitors to a site
Visitor IP address
Browser type
Platform
ITM UNIVERSE(MCA) Page 3
4. WebServer Traffic & Analysis
2.) Visited page traffic analysis
Most requested pages
Most requested entry pages
Most requested exit pages
Portions of a site visited
3.) Log file
Time/date request
duration of the visits
Error generate
4.) Bug tracking
Class
Method
Line no
Message
Page
Data mismatch
Error type
ITM UNIVERSE(MCA) Page 4
5. WebServer Traffic & Analysis
1.6 Advantages of the System
• The web server traffic tracking is an innovative system tool.
• It also provide use to solve the problem occur in web site through online feature.
• It provides to reduce the load on server.
• It is big help of the developer and issue solver because easily get the message on mobile.
• Help to save the time and costs of the issue solver and owner.
• Owner easily get the message or notification on mobile and E-mail.
1.7 Limitation the system
Only java based applications can run on the system.
No visitor interaction.
ITM UNIVERSE(MCA) Page 5
6. WebServer Traffic & Analysis
2 .Requirement Analysis
2.1 Requirement specification
• The analysis of webserver traffic & analysis examine the total number of visitors to a site, day of
site visitors , weekly and monthly visitor visit a site details.
• A log entry may be used to generate information about the number of hits, visitors, visitor
duration, visitor origin (sub domain, referral link), visitor ip_address, browser name and version,
platform, cookies, and details of interaction with the web site.
• Visitor come on site when generate a log file so that log file is contain the visitor sign in time and
sign out time entry generate.
• Log entry may be used to know as a most popular page , which page is most popular and most
exits page.
• Visitors report also get the site owner and when run time errors are occure issue solver get the
message on mobile and solve the problem at the time.
ITM UNIVERSE(MCA) Page 6
7. WebServer Traffic & Analysis
1. Functional Requirement specification
I. Traffic Analysis
Admin view visitor details
• Number of hits
• Visitor duration
• Visitors IP address
• Browser types
• Platform
• Authentication user
• Average page duration
• sign in time
• sign-out time
• Total number of visitors sites
Owner view the details
ITM UNIVERSE(MCA) Page 7
8. WebServer Traffic & Analysis
• Number of visits, and number of unique visitors
• Daily bases track no. Of visitors
• Weekly bases track no. Of visitors.
• Also get notification E-mail and SMS.
• Most popular page ,page_id and name
• Registered and un registered
• number of page views per visitor
II. Bug Analysis
Issue solver
• Package
• Class
• Method
• Error Line number
• Name of error
• Type of error
• Page name on error
• Error time and date
Owner
• Page name of error
• Error Message
ITM UNIVERSE(MCA) Page 8
9. WebServer Traffic & Analysis
• Error date & time
Visitor details
• System shall provide access visitor details from selecting ip_address .
• The system shall provide information about total number of visitor, average page view per visits,
average duration per page.
• System will also see view cookies details.
Visited page
• The system shall access visited page details like most entry page, most requested page, most
exits page.
• The system should make some visited path of visitor for viewing the page.
Log file details
• The system should provide a log_entry details of visitor.
ITM UNIVERSE(MCA) Page 9
10. WebServer Traffic & Analysis
• The system should save visitor information to log file.
• The system should access log file details for specific visitor & all visitor.
Bug management
• The system shall provide notification about bug to owner.
• The system will provide information about general and technical bug message to owner and
admin
2.2 Hardware and software requirement specification
Hardware Requirement
Server
• The minimum hardware as recommended by all of the software required on server side say
web server, operating system and development software
• Processing speed of 1.6 GHz
• 1 GB of RAM
• Network interface
Client
• The minimum hardware as recommended by all of the software required on client side say
web browser, operating system
ITM UNIVERSE(MCA) Page 10
11. WebServer Traffic & Analysis
• Minimum hardware depending on the operating system used User peripherals for better
interaction
Software Requirement
Server
• Web server software, Apache Tomcat
• Server side scripting tools: jsp , struts
Client side software
• Web browser supporting JavaScript, refer Browser Compatibility.
2.3 About the tool & Technology
IDE -Net Beans IDE 8.0.2
Code behind(Business Logic)- java
View Technology - JSP
Scripting Language - Java Script, Jquery
Client Side Technology-CSS,Bootstrap
Mark-up Language- HTML,XML
ITM UNIVERSE(MCA) Page 11
12. WebServer Traffic & Analysis
Notification SMS gateway, Email gateway
Run Time Environment-JDK 8
Application Server-Apache Tomcat 6.0.1,Glassfish
Database Server-MySQL Server 5.5
3. Feasibility Analysis
1) Operational Feasibility
• Operational feasibility measures that how well the solution will work in the organization and also
how end-user will & other user’s feels about the system.
• On studying the operational feasibility of the project, following conclusion can be derived
developed system will provide all the information regarding visitor ,visitor page.
2) Technical Feasibility
• It is trie to answer the following questions to make the software feasible to develop.
• The software or tools necessary for building or running the application is easily available or
not?
• The compatibility amongst software exists or not?
ITM UNIVERSE(MCA) Page 12
13. WebServer Traffic & Analysis
• Developers aware of these technologies?
• What about the alternative of these chosen technologies?
• So, we should answer above question:
• The Developer environment we are using is JAVA, which is supporting flexibility,
portability and platform independent.
• Because it is made up from the scratch, it supports latest technologies like XML natively.
• Execution of the code is done in managed environment so that applications are safer and
reliable.
• Object oriented approach in most of the languages is like to give more robust coding.
• Moreover, it is supporting various platforms to deploy application.
3) Economically Feasibility
Economically Feasibility address to the following issues:
• Is the organization/owner having the suitable budget to develop the proposed system?
• How much profile can be earned from the system by an organization?
• Would it be cost – effective to develop the system or it is worthwhile to retain with current
system?
4) Time and Schedule Feasibility
• Projects are initiated with specific deadline. We need to evaluate whether the deadlines are
mandatory or desirable. Time is the one of the critical factor in the development of any
system but this kind of feasibility is hardly perfect in any system.
ITM UNIVERSE(MCA) Page 13
14. WebServer Traffic & Analysis
• We have been asked to complete the project within given period. In the project planning
section we elaborate our ideas to develop the system within the given period. Hence, it is
feasible to develop a system in predetermined time interval.
4. System design
ITM UNIVERSE(MCA) Page 14
27. WebServer Traffic & Analysis
Sequence diagram for system
ITM UNIVERSE(MCA) Page 27
28. WebServer Traffic & Analysis
5. Data Dictionary
Visitor
Attributes Data type Constraints Description
Ip_address Varchar(30) Primary key Visiters Ipaddress
Browser_name Varchar(15) Not null Browser name
Plateform_name Varchar(15) Not null Os_name
Log Id
Attributes Data type Constraints Description
Log_id Integer(5) Primary key Id of log file
SignIn_time Time Not null Signin time
SignOut_time Time Not null Signout time
Date Date Not null Date
Ip_address Varchar(30) Foreign key refers
to Visitor (Ip_address)
Id of visitor
Page_id Integer(5) Foreign key refers
to Page (Page_id)
Page id
ITM UNIVERSE(MCA) Page 28
29. WebServer Traffic & Analysis
Page
Attributes Data type Constraints Description
Page_id Integer(5) Primary key id of page
Page_name Varchar(20) Not null name of Page
Hits Number Not null Number of hits on
page
Date Date Not null Page visit date
Ip_address Varchar(30) Foreign key refers
To Visitor (Ip_address)
Visiters Ipaddress
Fileupload(drive table)
Attributes Data type Constraints Description
File_id Integer(5) Primary key File id
File_version Varchar(30) Not null Name of file version
File _size LongBLOB Not null File size(4mb)
File_Type Varchar(20) Not null Doc/html etc.
Page_id Integer(5) Foreign key refers
to Page (Page_id)
Id of page
ITM UNIVERSE(MCA) Page 29
30. WebServer Traffic & Analysis
Bug
Attributes Data type Constraints Description
Bug_id Integer(5) Primary key Error id
Line of number Integer(5) Not null Error line number
Date Date Not null Date
Time Time Not null Time
Root cause
exception(bug type)
Varchar(30) Not null Error type
Error message Varchar(30) Not null Error msg
Page_id Integer(5) Foreign key refers
to Page (Page_id)
Id of page
Method_id Integer(5) Foreign key refers
to Method (Method_id)
Method id
Method
Attributes Data type Constraints Description
Method_id Integer(5) Primary key Method id
Method_name Varchar(15) Not null Method name
Class_id Integer(5) Foreign key refers
To class(class_id)
Class id
ITM UNIVERSE(MCA) Page 30
31. WebServer Traffic & Analysis
Class
Attributes Data type Constraints Description
Class_id Integer(5) Primary key Class id
Class_name Varchar(15) Not null Name of class
Package_id Integer(5) Foreign key refers
to
package(package_id)
Id of package
package
Attributes Data type Constraints Description
Package_id Integer(5) Primary key Package id
Package_name Varchar(15) Not null Package_name
Admin
Attributes Data type Constraints Description
Id Integer(5) Primary Admin id
Name varchar(20) Not null Name of issue
solver& owner
E-mail Varchar(30) Not null Email of issue
solver& owner
Person_contact
Attributes Data type Constraints Description
ITM UNIVERSE(MCA) Page 31
32. WebServer Traffic & Analysis
Id Integer(5) Foreign key refers to
admin(id)
Id issue solver &
owner
Contact_no Number Not null Mobil number
Issue solver
Attributes Data type Constraints Description
Id Integer(5) Foreign key refers to
admin(id)
Id of issue solver
Bug_id Integer(5) Foreign key refers to
Bug(bug_id)
Bug_id
Owner
Attributes Data type Constraints Description
Id Integer(5) Primary key Id of owner
ITM UNIVERSE(MCA) Page 32
50. WebServer Traffic & Analysis
8. Testing
8.1 Testing Strategies
Testing strategies is a general approach to the testing process rather than method of
devising particular system or components test. Different testing strategies may be adopted
depending on the type of system to be tested and the develop process used. So considering
functional oriented nature of this nature of this software we adopted mixture of following
strategies.
Testing is advantageous in several ways. First, the detects found, help in the process of a
making software reliable. Second, defects found are not corrected, Third, over time, the record
of defects found reveals the most common kinds of defects , which can be used form developing
appropriate preventive measures such as training, proper design and reviewing.
The development process repeats this testing sub-process a number of times for the following
phases:
1. Unit testing
2. Integration testing
3. System testing
4. Acceptance testing
8.1.1 Testing Stage
1. Unit testing:
Unit testing focuses verification effort on the smallest unit of software design the software
component or module. In this type of testing individual modules were tested and verified
ITM UNIVERSE(MCA) Page 50
51. WebServer Traffic & Analysis
whether accurate output was made available or not. The modules were tested individually as they
could result into faster responses than they were integrated.
2. Integrated testing:
When the unit testing was over, all the modules were integrated one by one and tested as a
whole. If any error occur during testing then it is solved by this testing.
3. Validation testing
Validation testing can be defined in many ways but a simple definition is that a
definition is that a validation succeeds when the software functions in a manner that can be
reasonably accepted by the client.
4. Acceptance Testing
Before delivering the product to the client, it will be tested for stability and correctness of
results. By conducting the fore mentioned test cases, we should be able to conclude on the
reliability of the product before the client test it for acceptance. First tests will also include
testing on the entire database. The client will test the program for criteria mentioned in the next
section before accepting the product.
Specific acceptance criteria (the client expects the following):
• Conformity with the predefined requirements
• Correct data returned from the SQL Server searches.
• Functionality in multiple environments. Since this is a web product, it must be compatible to
various browsers on different systems.
ITM UNIVERSE(MCA) Page 51
52. WebServer Traffic & Analysis
8.2 Feature Level Testing:
8.2.1 Task-Oriented Functional Tests.
1. The mandatory fields must not be left empty
2. Email-id should contain’@’ and’.’ Characters
3. Date should be in DD/MM/YYYY format.
4. User name and password must match with registered details.
8.2.2 Integration Tests
Components or modules that should be tested independently are following.
1. Browser compatibility.
2. Hardware compatibility.
3. Interface testing.
4. User input testing.
8.2.3 System Level Tests
In system level tests we will use black-box testing since all independent modules or functionalities
are already tested before. System level tests will start after unit and integration testing gets
completed.
8.2.4 Performance Tests
System has certain features that highly affected their takeaway value. These features need to be
tested against its performance.
User response time- should be moderate. It should be in range of 1-5 seconds.
ITM UNIVERSE(MCA) Page 52
53. WebServer Traffic & Analysis
Basic Test Case
Test Case No Expected Output Actual Output Pass/Fail
1 Form is open Successfully Form is open
Successfully
Pass
2 Window is open normally Window is open
normally
Pass
3 Form looks properly and
uniformly
Form looks properly
and uniformly
Pass
4 Title caption are in normal
font
Title caption are in
normal font
Pass
5 Textbox are aligned
properly
Textbox are aligned
properly
Pass
6 Character Fields are
central justified
Character Fields are
central justified
Pass
7 Buttons are central
justified
Buttons are central
justified
Pass
8 Fonts of all labels and
buttons are same
Fonts of all labels and
buttons are same
Pass
9 Tab order is proper Tab order is proper Pass
10 Form is close successfully
(Using exit Button)
Form is close
successfully
Pass
Test case
Test case
name
Actual Input Expected Output Actual Output Pass/Fail
ITM UNIVERSE(MCA) Page 53
54. WebServer Traffic & Analysis
Login Email Id and
Password
If valid redirect to
home page.
If not valid give
message to re-
enter username
and password
Successfully
redirect to home
page
Pass
Add Select category,
Company for add
If for given
selection data is
present then
display output or
Add for different
category will be
displayed on Page
in grid.
Pass
Master of
Admin
(Owner , Issue
solver)
Click on any of
these two master
& then can view
data
If user visit a site
then owner get the
details in grid
own panel .
Display details in
grid.
Pass
Log file Visitor visit a site
when error occur.
Error entry in log
file. When run
time error is occur
error entry in
Logfile.txt Pass
Message
Visitor visit a site
when error is
occur.so send the
message in
mobile or email
Get the error
message in
mobile ,which
line no ,and which
error name
Get mail or
message on
mobile..
pass
Graph
Pie chart,
Bar chart,
Multi-line
chart
Graph will show
as per data
retrieved from
database.
Show Chart after
clicking on action
link.
Show the chart in
as per data in
visitor
pass
9. Source code
package projectfiles;
import com.opensymphony.xwork2.ActionSupport;
ITM UNIVERSE(MCA) Page 54
55. WebServer Traffic & Analysis
public class loginAction extends ActionSupport{
String unm, pwd;
String un="admin";
String pw="admin";
public String login() {
return "login";
}
public String getmenu(){
if(un.equals(unm) && pw.equals(pwd))
{
return SUCCESS;
}
else
{
return ERROR;
} }
// getter and setter -----------------------
public String getUnm() {
return unm;
}
public void setUnm(String unm) {
this.unm = unm;
}
public String getPwd() {
ITM UNIVERSE(MCA) Page 55
66. WebServer Traffic & Analysis
• memory management
• how much memory is consumed by a single user at given time interval(hourly , daily , monthly
basis)
• how much memory consumed by application
• what is to total heap memory used
• notification when application crosses given memory limit..
ITM UNIVERSE(MCA) Page 66
68. WebServer Traffic & Analysis
Maintain the load on server & control traffic.
Solve run time errors and will maintain a log file.
Provide online help & send notification to owner about bugs.
So, that we are implementing this application for better use to all in future.
13. BIBILIOGRAPHY
ITM UNIVERSE(MCA) Page 68
69. WebServer Traffic & Analysis
Reference Website:
[1] jQuery- http://www.w3schools.com/
[2] java code- http://www.javatutorialpoint.net
[3] www.mkyong.com
And the search engine which helped us a lot
www.google.com
THANK YOU
ITM UNIVERSE(MCA) Page 69