Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have one windows application which keep connecting to mySQL database which is on db4Free. I found that my data usage is really high whenever i connected to that database. Data usage I found is 300 MB per 20 Minutes.. I even not used any image upload. I am just reading data from that mySQL database table. and reading of data is frequent like per second. I am just using simple queries.

I am not at all blaming to db4free website for this, this is my coding fault or weak knowledge.
Please help me.

I have tagged this question with MySQL-Connector Because codeproject throwing error while selecting MySQL tag.
Posted
Updated 20-Sep-14 22:08pm
v5
Comments
nilesh sawardekar 21-Sep-14 4:26am    
Thanks for editing.. but can you answer me too..

This is not a direct solution to your problem, but might help you to find out what is happening.

You could use a tool to analyze the traffic on your computer in order to see what is going on.
Sysinternals is a good place to start for different windows tools.
Sysinternals Networking Utilities[^]
Look for TCPView. It will show you which connections you have open, but doesn't contain a monitor.
Quote:

TCPView is a Windows program that will show you detailed listings of all TCP and UDP endpoints on your system, including the local and remote addresses and state of TCP connections.


For a network monitor you can try this tool from Microsoft
Microsoft Network Monitor 3.4[^]

Quote:
Tool to allow capturing and protocol analysis of network traffic.


If it is an application you have the source code for, you can always add a logging functionality that writes sent and received data to a file.
If you create a new file every 5 or 10 minutes, you can see how much data that is transferred within this time frame.
 
Share this answer
 
Data transfer and "querying" imply the use of bandwidth and depend on how many rows are being requested per query.

Doing the math : 300,000 Kb / 20*60 seconds = 250kb/sec which is reasonable.

Try enabling compression.
 
Share this answer
 
Comments
nilesh sawardekar 21-Sep-14 4:50am    
Thank you for your reply.
Just want to confirm that what will be solution if I only looking for 2 or 3 rows per second.
and also,
can you give little advice on enabling compression.
Mehdi Gholam 21-Sep-14 5:04am    
For 2-3 rows 250kb is a lot for plain SQL, using compression depends on how you are connecting to the database service.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900