Server Freezing for no reason. I have tried a lot of ways but still not fix......

Hello everyone, my server has been frequently Freezing lately, without any response, unable to input any characters, and without any prompts. I have tried these ways but not working:
1.updating the oxide and all plugins.
2.Increase physical memory to 25G, usually occupying between 16G-19G. The number of entities is 410000.
3.I have test it under vanilla server and worked fine. So I don't think the save file is broken. 

Here is my entity list:
planner:36533
ak47u.entity:18803
wall:15415
syringe_medical.entity:14830
wall.frame:13207
foundation:13022
floor:11733
lasersight.entity:10112
floor.triangle:9284
wall.half:7961
lr300.entity:7899
foundation.triangle:6460
flashlight.entity:6205
mp5.entity:6127
m92.entity:6116
m39.entity:5247
ak47u_ice.entity:5119
birch_medium_temp:4586
salvaged_sword.entity:3840
orebonus_generic:3449
m249.entity:3104
binocular.entity:2830
birch_large_temp:2781
american_beech_c:2778
american_beech_b:2774
birch_big_temp:2774
american_beech_a:2773
birch_small_temp:2692
birch_tiny_temp:2685
american_beech_e:2648
american_beech_d:2645
american_beech_a_dead:2594
autoturret_deployed:2504
box.wooden.large:2332
hatchet.entity:2286
pickaxe.entity:2251
smallwaterbottle.entity:2173
grenade.f1.entity:2037
american_beech_e_dead:1992
smg.entity:1986
thompson.entity:1980
electrical.branch.deployed:1901
wall.window:1668
creosote_bush_d:1653
creosote_bush_c:1651
l96.entity:1610
storageadaptor.deployed:1571
mace.entity:1562
salvaged_cleaver.entity:1549
stone-ore:1527
wall.low:1507
keycard.entity:1501
extendedmags.entity:1423
splitter:1374
grenade.beancan.entity:1358
pine_d:1308
pine_b:1226
bow_hunting.entity:1225
waterjug.entity:1207
roof:1189
furnace:1173
ceilinglight.deployed:1151
lock.code:1136
bush_spicebush_a:1082
bush_spicebush_d:1082
bush_spicebush_c:1081
bush_spicebush_b:1078
workcart_fuel_storage:1060
sulfur-ore:1051
metal-ore:1050
knife.combat.entity:990
spas12.entity:986
dead_log_b:954
dead_log_a:953
dead_log_c:953
explosive.timed.entity:927
pine_sapling_b:914
pine_sapling_c:914
pine_sapling_d:913
pine_sapling_a:913
pine_sapling_e:912
pine_sapling_e_snow:886
pine_sapling_d_snow:886
paddle.entity:873
waterbucket.entity:873
mormon_tea_b:863
mormon_tea_a:863
mormon_tea_d:862
mormon_tea_c:862
guitar.weapon:835
pine_a:826
electrical.combiner.deployed:790
creosote_bush_b:790
creosote_bush_a:790
chainsaw.entity:785
bush_willow_d:775
bush_willow_b:775
bush_willow_a:774
bush_willow_c:774
rocket_launcher.entity:750
saddletest:728
sleepingbag_leather_deployed:710
geiger_counter.entity:703
oak_e:667
jackhammer.entity:664
oak_f:654
wall.doorway:618
pine_sapling_b_snow:614
pine_sapling_c_snow:614
pine_sapling_a_snow:614
lock.key:606
sam_site_turret_deployed:605
crossbow.entity:582
pine_c:582
wall.frame.garagedoor:579
pine_dead_snow_e:573
pine_dead_snow_f:572
pine_a_snow:570
semi_auto_rifle.entity:561
douglas_fir_a:558
douglas_fir_b:556
douglas_fir_c:552
holosight.entity:539
axe_salvaged.entity:530
bush_willow_snow_d:528
bush_willow_snow_a:527
bush_willow_snow_c:527
bush_willow_snow_b:526
icepick_salvaged.entity:518
douglas_fir_d:503
grenade.flashbang.entity:490
mgl.entity:481
pine_dead_e:472
birch_large_tundra:470
pine_dead_f:469
birch_big_tundra:469
pine_dead_d:468
smallscope.entity:448
planter.large.deployed:432
wall.window.glass.reinforced:424
cupboard.tool.deployed:421
bush_willow_snow_small_a:409
bush_willow_snow_small_b:409
roof.triangle:407
switch:393
creosote_bush_dry_b:386
ramp:385
creosote_bush_dry_a:385
floor.frame:375
pine_dead_b:373
flare.weapon:372
pine_dead_c:372
pine_dead_a:372
pitchfork.entity:370
saddlerear:364
cactus-4:364
testridablehorse:364
cactus-1:364
cactus-7:364
cactus-3:364
cactus-5:364
cactus-2:364
cactus-6:363
woodbox_deployed:355
xmas.lightstring.deployed:336
shutter.metal.embrasure.b:332
wall.external.high.ice:332
bandage.entity:329
solarpanel.large.deployed:323
palm_tree_short_c_entity:311
palm_tree_short_b_entity:311
palm_tree_short_a_entity:311
pine_dead_snow_b:300
douglas_fir_b_snow:300
pine_dead_snow_d:300
douglas_fir_a_snow:299
douglas_fir_c_snow:299
pine_dead_snow_c:299
pine_dead_snow_a:299
pine_c_snow:298
bolt_rifle.entity:290
wall.frame.cell:289
wall.frame.fence:285
wall.frame.netting:277
pine_d_snow:272
pine_b snow:271
birch_small_tundra:267
birch_tiny_tundra:266
birch_medium_tundra:265
floor.triangle.frame:259
silencer.entity:256
door.hinged.toptier:252
double_shotgun.entity:244
wall.external.high.stone:240
hammer.entity:239
industrialconveyor.deployed:238
generic_world:236
wall.window.bars.toptier:230
electric.sprinkler.deployed:227
industrial.wall.lamp.deployed:224
shotgun_waterpipe.entity:221
generator.small:218
palm_tree_tall_a_entity:218
palm_tree_med_a_entity:218
grenade.molotov.entity:217
compound_bow.entity:216
palm_tree_tall_b_entity:216
player:209
floor.grill:206
pistol_revolver.entity:197
guntrap.deployed:197
workbench3.deployed:197
speargun.entity:193
8xscope.entity:193
door.double.hinged.toptier:192
hitchtrough.deployed:191
butcherknife.entity:186
igniter.deployed:186
rug.deployed:185
palm_tree_small_a_entity:185
industrialsplitter.deployed:184
industrialcrafter.deployed:182
hammer_salvaged.entity:178
simplelight:178
furnace.large:172
electrical.heater:168
douglas_fir_d_small:168
large.rechargable.battery.deployed:167
shelves:165
stonehatchet.entity:165
doormanipulator.invisible:163
door.hinged.elevator_door:161
pressbutton_trainstairwell:161
supplysignal.weapon:158
sickle.entity:154
industrialcombiner.deployed:153
stone_pickaxe.entity:152
python.entity:150
water.pump.deployed:142
block.stair.spiral.triangle:137
electric.windmill.small:136
foundation.steps:135
coffinstorage:134
trash-pile-1:134
loot-barrel-1:133
loot-barrel-2:133
block.stair.lshape:131
wall.window.bars.wood:130
door.hinged.metal:125
elevator.static:125
door.hinged.elevator_inside_door_office:123
oak_b:122
hmlmg.entity:121
bush_spicebush_c_snow:119
wiretool.entity:118
block.stair.ushape:117
bush_spicebush_a_snow:117
mixingtable.deployed:116
oak_c:114
ladder.wooden.wall:112
oak_d:111
sofaseat:108
generic_deploy:105
door.hinged.wood:105
searchlight.deployed:105
chair.static:103
muzzlebrake.entity:102
fridge.deployed:100
palm_tree_small_b_entity:100
palm_tree_small_c_entity:99
floor.triangle.grill:99
locker.deployed:98
ocotillo_b:97
ocotillo_a:97
door.hinged.industrial_a_b:97
ocotillo_dry_b:96
ocotillo_c:96
ocotillo_dry_a:96
ocotillo_d:96
ocotillo_dry_c:96
ocotillo_dry_d:96
shutter.metal.embrasure.a:93
ziplinelaunchpoint:93
campfire:92
driftwood_3:92
driftwood_1:92
driftwood_4:92
driftwood_5:92
driftwood_2:92
driftwood_set_1:91
driftwood_set_3:91
driftwood_set_2:90
repairbench_deployed:88
block.stair.spiral:87
torch.entity:87
workbench2.deployed:83
refinery_small_deployed:83
composter:83
bed_deployed:81
floor.ladder.hatch:81
door.double.hinged.metal:80
explosive.satchel.entity:79
passenger:79
fluidswitch:79
door.hinged.industrial_a_a:79
detonator.entity:78
rug.bear.deployed:78
simpleswitch_lightswitch:78
vending_mapmarker:77
doorcloser:77
recycler_static:77
beachtowel.deployed:76
fuel_storage:75
electricfurnace.io:75
electricfurnace.deployed:75
flameturret.deployed:74
pager.entity:73
flamethrower.entity:73
discofloor.largetiles.deployed:71
floor.triangle.ladder.hatch:70
workbench1.deployed:69
giantcandycane.deployed:68
shotgun_pump.entity:66
modularcarpassengerseatright:64
burstmodule.entity:63
rock.entity:63
smallboatpassenger:61
vendingmachine.deployed:61
poweredwaterpurifier.storage:61
poweredwaterpurifier.deployed:61
modularcardriverseat:59
modular_car_fuel_storage:59
longsword.entity:59
reactivetarget_deployed:59
swamp_tree_e:56
doormanipulator:56
pistol_semiauto.entity:55
windowgarland.deployed:55
generator.static:55
pressbutton:55
corn.entity:54
wall.frame.shopfront.metal:54
chair.icethrone:54
cctv.static:54
muzzleboost.entity:53
glock.entity:53
barricade.metal:53
researchtable_deployed:53
industrial.wall.lamp.red.deployed:52
laserlight.deployed:52
swamp_tree_f:51
wagon_crate_normal:50
door.double.hinged.wood:48
survey_charge:48
door.hinged.industrial_a_d:48
cardgameplayerstorage:46
smoke_grenade.weapon:45
orswitch:45
junkpile_water_a:44
swamp_tree_d:44
junkpile_water_c:43
fogmachine:43
chair.deployed:43
cardreader:43
junkpile_water_b:42
tunalight.deployed:41
testseat:40
ziplinearrivalpoint:40
door.hinged.vent:40
modular_car_i4_engine_storage:39
1module_cockpit_with_engine:39
elevator_lift.static:39
elevator.static.top:39
snowball.entity:38
fluid.combiner.deployed:38
cardtableseat:37
xorswitch:37
swamp_tree_a:36
hobobarrel.deployed:35
smartswitch:34
shutter.wood.a:34
giantlollipops.deployed:34
soundlight.deployed:34
swamp_tree_b:34
innertube.deployed:33
simplesight.entity:33
chineselantern.deployed:33
door.hinged.industrial_a_c:33
hobobarrel_static:33
modularcarpassengerseatsidewayleft:32
modular_car_sleepingbag_campervan:32
electric.sirenlight.deployed:32
wall.window.bars.metal:32
stocking_large_deployed:32
electrical.modularcarlift.deployed:31
beachchair.deployed:31
1module_engine:30
modular_car_v8_engine_storage:30
wall.frame.cell.gate:30
stocking_small_deployed:30
sentry.bandit.static:30
bbq.deployed:29
waterbarrel:29
pipetool.entity:29
landmine:29
toolgun.entity:28
graveyardfence:28
sign.small.wood:28
blue_berry.entity:27
fuelstorage:26
engineswitch:26
spray.decal:26
beachparasol.deployed:26
computerstation.deployed:25
lantern.deployed:25
sign.pictureframe.xl:25
boombox.deployed:25
swamp_tree_c:25
hopperoutput:24
1module_storage:24
modular_car_1mod_storage:24
door.hinged.industrial_a_g:24
spear_wooden.entity:23
ptz_cctv_deployed:22
water_catcher_small:22
discofloor.deployed:22
door.hinged.underwater_labs.public:22
3module_car_spawned.entity:21
hosetool.entity:21
cursedcauldron.deployed:21
counter:21
mining_quarry:21
toilet_a.static:21
sentry.scientist.static:21
modularcarpassengerseatlesslegroomright:20
modularcarpassengerseatlesslegroomleft:20
item_drop_backpack:20
fireplace.deployed:20
fluidsplitter:20
electrical.blocker.deployed:20
xmas_tree.deployed:20
door.hinged.industrial_a_e:20
connectedspeaker.deployed.static:19
4module_car_spawned.entity:19
connectedspeaker.deployed:19
2module_car_spawned.entity:19
industrial.wall.lamp.green.deployed:19
planter.small.deployed:19
spraylinedecal:19
door.hinged.industrial_a_h:19
innertube.unicorn.deployed:18
pookie_deployed:18
electric.flasherlight.deployed:18
drone.deployed:18
mortarchampagne:18
door.hinged.industrial.a:18
rowboat:17
smallboatdriver:17
rowboat_storage:17
wagon_storage_lootwagon:17
beachtable.deployed:17
barricade.stone:17
rustigeegg_a.deployed:17
simpleswitch:17
fusebox:17
phonebooth.static:17
hab_storage:16
snowballgun.entity:16
hotairballoon:16
sofa.pattern.deployed:16
wall.external.high.wood:16
marketterminal:16
sirenlightorange:16
candy_cane.entity:15
locomotive_fuel_storage:15
wall.frame.fence.gate:15
workcartdriver:15
frankensteintable.deployed:15
doorgarland.deployed:15
door.hinged.security.green:15
door.hinged.wood.static:15
sofa_pattern.static:15
nailgun.entity:14
table.deployed:14
fishing_rod.entity:14
rustigeegg_b.deployed:14
door.hinged.industrial_a_f:14
shopkeeper_vm_invis:14
1module_cockpit:13
wagon_storage:13
scientist_corpse:13
rustigeegg_d.deployed:13
gates.external.high.stone:13
spikes.floor:13
sofa.deployed:13
cardgamepotstorage:13
hemp.entity:12
spraycan.weapon:12
christmas_door_wreath_deployed:12
elevator:12
door.hinged.bunker.door_nuclear_silo:12
1module_rear_seats:11
item_drop:11
wagon_crate_normal_2:11
water_catcher_large:11
button:11
small_refinery_static:11
red_berry.entity:10
pilotseat:10
barricade.sandbags:10
workcart_aboveground.entity:10
xmas.advanced.lights.deployed:10
sofa.static:10
repairbench_static:10
bandit_shopkeeper:10
sam_static:10
yellow_berry.entity:9
white_berry.entity:9
jackolantern.happy:9
hbhfsensor.deployed:9
piano.deployed:9
arcadeuser:9
snowman.deployed:9
blackjackplayerseat:9
slotmachinestorage:9
door.hinged.security.blue:9
door.hinged.security.red:9
cave_lift_trigger:9
cave_lift:9
door.hinged.underwater_labs.security:9
bbq.campermodule:8
2module_camper:8
modular_car_camper_storage:8
locker.campermodule:8
small_fuel_generator.deployed:8
cassette.entity:8
rfreceiver:8
sign.pictureframe.xxl:8
electrical.random.switch.deployed:8
chippyarcademachine:8
timerswitch:8
door.hinged.nms_grey:8
1module_flatbed:7
wagon_crate_normal_2_food:7
1module_cockpit_armored:7
medium.rechargable.battery.deployed:7
discoball.deployed:7
knife_bone.entity:7
drumkit.deployed:7
trainwagonunloadableloot.entity:7
cctv_deployed:7
rustigeegg_c.deployed:7
strobelight:7
generator.static_hidden:7
computerstation.static:7
door.hinged.bunker.door:7
pistol_eoka.entity:6
secretlabchair.deployed:6
wagon_storage_fuel:6
trainwagonunloadablefuel.entity:6
smallrechargablebattery.deployed:6
paddlingpool.deployed:6
largecandleset:6
photo.entity:6
caboose_lightswitch:6
smallcandleset:6
researchtable_static:6
bigwheelbettingterminal:6
door.hinged.elevator_door_office:6
pressbutton_officeelevatorcall:6
horsespawner:6
watergun.entity:5
modularcarpassengerseatleft:5
1module_passengers_armored:5
machete.weapon:5
sign.huge.wood:5
workcart_aboveground2.entity:5
abovegroundpool.deployed:5
barricade.cover.wood:5
watchtower.wood:5
mailbox.deployed:5
snowmachine:5
skull_fire_pit:5
rfbroadcaster.static:5
locomotive.entity:4
locomotivedriver:4
trainwagona.entity:4
sign.large.wood:4
orswitch.entity:4
electrical.memorycell.deployed:4
boomboxportable.weapon:4
jackolantern.angry:4
teslacoil.deployed:4
xylophone.deployed:4
photoframe.large:4
slotmachine.caboose:4
boogieboard.deployed:4
small_stash_deployed:4
xorswitch.entity:4
survivalfishtrap.deployed:4
door.hinged.garage_a:4
andswitch:4
rocket_crane_lift_trigger:4
door.hinged.nms_green:4
door.hinged.nms_red:4
door.hinged.bunker_hatch:4
spikes_static:4
toilet_b.static:4
microphonestand.deployed.static:3
crate_normal:3
scientistnpc_roamtethered:3
chicken.corpse:3
2module_flatbed:3
modular_car_1mod_trade:3
1module_taxi:3
trainwagonunloadable.entity:3
sign.pictureframe.tall:3
mortarorange:3
sign.neon.xl:3
sign.neon.xl.animated:3
mortarviolet:3
sedantest.entity:3
driverseat:3
microphonestand.deployed:3
microphonestandio.entity:3
sign.post.town:3
spiderweba:3
trainwagonc.entity:3
rfbroadcaster:3
caboose_xorswitch:3
caboose_generator:3
telephone.deployed:3
poweredlightsdeployer:3
elevator_lift:3
elevatorioentity:3
photoframe.landscape:3
newyeargong.deployed:3
trainwagonb.entity:3
elevator_office_lift.static:3
boatspawner:3
boat_shopkeeper:3
npcvendingmachine_fishexchange:3
missionprovider_fishing_b:3
missionprovider_fishing_a:3
cardtable.static_configc:3
workbench1.static:3
slotmachine:3
elevator.static.office.top:3
miningquarry_static:3
microphonestandio.entity.static:2
crate_normal_2:2
crudeoutput:2
rhib_storage:2
rhib:2
loot_barrel_1:2
standingdriver:2
loot_barrel_2:2
boar.corpse:2
snowmobilepassengerseat:2
snowmobiledriverseat:2
2module_passengers:2
pumpkin.entity:2
sign.hanging.banner.large:2
snowmobile:2
snowmobileitemstorage:2
snowmobilefuelstorage:2
kayakseat:2
audioalarm:2
mortarred:2
wall.frame.shopfront:2
flute.weapon:2
gates.external.high.wood:2
sign.post.single:2
traincaboose.entity:2
blackjackmachine.caboose:2
cabletunnel:2
bass.weapon:2
easter_door_wreath_deployed:2
timer:2
sign.hanging.ornate:2
doorcontroller.deployed:2
cardtable.caboose:2
pumpjack-static:2
door.hinged.garage_security:2
door.hinged.arctic.garage:2
lift_cabin_27:2
wall.frame.shopfront.metal.static:2
marketplace:2
chair_c.static:2
bbq.static:2
slotmachine.caboose_static:2
excavator_output_pile:2
sliding_blast_door:2
waterwellstatic:2
boombox.static:2
reinforcementslistener:2
alarmsound:2
alarmsytstem:2
cargomarker:1
tech_parts_2:1
cargoshiptest:1
oil_barrel:1
wagon_crate_normal_2_medical:1
minihelipassenger:1
miniheliseat:1
minicopter.entity:1
kayak:1
beartrap:1
cassetterecorder.deployed:1
carvable.pumpkin:1
item.painted.storage:1
sign.pictureframe.landscape:1
dragondoorknocker.deployed:1
mortargreen:1
barricade.woodwire:1
spear_stone.entity:1
sign.post.town.roof:1
skullspikes.deployed:1
barricade.wood:1
photoframe.portrait:1
cassetterecorder.weapon:1
megaphone.weapon:1
skull.entity:1
trumpet.weapon:1
jerrycanguitar.weapon:1
tambourine.weapon:1
andswitch.entity:1
tuba.weapon:1
cake.entity:1
skulltrophy.table.deployed:1
mace.baseballbat:1
dropbox.deployed:1
sign.post.double:1
spinner.wheel.deployed:1
scarecrow.deployed:1
sign.neon.125x215.animated:1
sign.pole.banner.large:1
tree_manager:1
relationship_manager:1
resourcedepositmanager:1
community:1
net_env:1
storagemonitor.deployed:1
desert_dwelling_single_p:1
desert_dwelling_single_r:1
desert_dwelling_single_d:1
desert_dwelling_single_g:1
desert_dwelling_double_b:1
desert_dwelling_double_i:1
desert_dwelling_double_g:1
mlrs_rocket_storage:1
mlrs_dashboard_storage:1
mlrs.entity:1
sign.neon.125x215:1
coaling_tower_ore_storage.entity:1
coaling_tower_fuel_storage.entity:1
coaling_tower_mechanism.entity:1
lift_cabin_15_no_roof:1
lift_cabin_21_no_roof:1
cardtable.static_configb:1
bandit_conversationalist:1
airwolfspawner:1
cardtable.static_configa:1
cardtable.static_configd:1
big_wheel:1
missionprovider_bandit_b:1
missionprovider_bandit_a:1
door.hinged.nms_hatch:1
wipetimer:1
water_catcher_small.static:1
npcvendingmachine_building:1
npcvendingmachine_attire:1
npcvendingmachine_weapons:1
npcvendingmachine_components:1
npcvendingmachine_resources:1
npcvendingmachine_tools:1
npcvendingmachine_farming:1
blackjackmachine.static:1
cardtable.caboose_static:1
traincaboose.static:1
piano.deployed.static:1
drumkit.deployed.static:1
xylophone.deployed.static:1
missionprovider_outpost_a:1
missionprovider_outpost_b:1
excavator_yaw:1
engine:1
excavator_lights:1
enginelistener:1
excavatorsignalcomputer:1
modularcarlift.static:1
carshredder.entity:1
stables_shopkeeper:1
missionprovider_stables_a:1
missionprovider_stables_b:1
wheelswitch:1
chippyarcademachine.static:1
bbq.static_hidden:1
cardtable.static_configa_hidden:1
workbench2.static:1

but the problem still exist. I found that vanilla server works find, 

I can't think of a reason anymore. Does anyone know what the problem may be?

You say "I found that vanilla server works find" - so you are answering your own question. One of your plugins is responsible for the issue. Add them one by one to find out which one is causing the issue.

htmlSh3wbejUsbb.png JimDeadlock

You say "I found that vanilla server works find" - so you are answering your own question. One of your plugins is responsible for the issue. Add them one by one to find out which one is causing the issue.

Yes. I did that. I removed all plugins except TruePVE and PreventLooting. But issue still happened. Is there any limit for memory use like no more than 20G?

You have more than enough RAM. Have you tried testing without any plugins at all, or even without Oxide installed?

it may be a corrupted save... my server would randomly lock and freeze i reinstalled and tried as many things as i could think of. after a wipe the server was back to normal !

He already said the problem is resolved if he goes vanilla, so it can't be anything but a plugin problem - he says the problem persists when he has "only" TruePVE and PreventLooting, so the problem is obviously with one of those plugins.

Problem solved! It's TrainHeist! I dont know exactly why but I think there are too many wagons. I set 10 wagons on train. Maybe too much calculation when train despawn. I remove TrainHeist and server never stack again. Thanks all help above!