Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hi guys

 

Has anyone found a good way to monitor the amount of network traffic to avoid overburdening the network with packets?

 

I'm writing a mod which needs to send a lot of packets in the background.  If I send too many at once, it overloads the network and slows down everything for other players.  But if I go too conservative it takes an overly long time to send all the packets.

 

What I'm really looking for is a way to monitor how much network traffic there is and throttle my packet sending accordingly.  I have a couple of ideas from looking through the code (still 1.6.4), but nothing great.

 

Anyone found a successful method for this before?

 

-TGG

I have not.  At one point I was worried about it, but then I considered how much minecraft itself is sending compared to what I was doing and stopped.

 

There are some packet events.  You could monitor that for usage over time and do something with it.

Long time Bukkit & Forge Programmer

Happy to try and help

Hey i also got the same problem my mod uses Packets but this come in console

 


Detected ongoing potential memory leak. 100 packets have leaked. Top offenders
[23:26:19] [Client thread/ERROR]: 	 mhfc : 100
[23:26:21] [server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2647ms behind, skipping 52 tick(s)
[23:26:39] [Client thread/ERROR]: Detected ongoing potential memory leak. 200 packets have leaked. Top offenders
[23:26:39] [Client thread/ERROR]: 	 mhfc : 200
[23:26:52] [server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 14906ms behind, skipping 298 tick(s)
[23:26:57] [server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2738ms behind, skipping 54 tick(s)
[23:26:58] [Client thread/ERROR]: Detected ongoing potential memory leak. 300 packets have leaked. Top offenders
[23:26:58] [Client thread/ERROR]: 	 mhfc : 300

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.