java1.5版本jvm开启后怎么关闭,

我的oracle 自带 jvm1.5版本,我电脑安装了1.7版本,我点击了1.5版本的 java.exe,之后打开eclipse显示jvm1.5版本过低,必须要1.6或以上的,我怎么能关闭jvm1.5版本,重新开启1.7版本的jvm

7个回答

杀死线程,任务管理器,把jdk相关的杀死

卸载1.5重新安装1.7就可以了。

在环境变量中设置一下jdk为1.7版本的

oracle的1.5,现在用的时候是为了打开sql develpe吧。机器上可以安装多个版本的jdk,主要是你在环境变量里面,配置的是那个。

进程里面 java.exe 停止就可以了

楼主为什么要双击启动java.exe呢?
开启eclipse需要什么样的JDK版本,这是eclipse的运行要求,eclipse也是java编写的,运行需要JDK的支持,看楼主的问题描述,意思是eclipse是运行在JDK1.6的基础上。
eclipse怎么是读取本地的JDK环境变量配置来加载的。楼主可改变本地eclipse环境变量的配置,让其指向1.6(或1.6以上)的JDK。
如果不想改变本地的JDK环境变量配置,还有种办法,就是在eclispe.ini文件中指定使用的JDK版本。
-vm
D:/jdk1.5-x86/bin/javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5

你看下你的eclipse.ini中配置的jvm是一点几的,也可以在eclipse 中配置对应的jdk 环境变量改成1.7的

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
swt中打开浏览器后,JVM崩溃
我这是swt程序,一个功能是调用浏览器访问百度地图获取坐标,以前一直都没有问题,可现在一打开这个功能JVM就挂了,下面贴出日志信息,望高手分析指点下,谢谢! # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x67164778, pid=2728, tid=4680 # # JRE version: 6.0_35-b10 # Java VM: Java HotSpot(TM) Client VM (20.10-b01 mixed mode windows-x86 ) # Problematic frame: # C [ieframe.dll+0x64778] # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --------------- T H R E A D --------------- Current thread (0x02149800): JavaThread "main" [_thread_in_native, id=4680, stack(0x001f0000,0x00240000)] siginfo: ExceptionCode=0xc0000005, reading address 0x00000000 Registers: EAX=0x00000000, EBX=0x0023ef50, ECX=0x00000001, EDX=0x0068972c ESP=0x0023ef3c, EBP=0x0023ef54, ESI=0x8000ffff, EDI=0x00000000 EIP=0x67164778, EFLAGS=0x00210246 Top of Stack: (sp=0x0023ef3c) 0x0023ef3c: 38e95200 38ea4988 38ea49e4 671646c4 0x0023ef4c: 38ea49dc 00000000 0023ef5c 671646a6 0x0023ef5c: 0023ef70 6a970f3b 0068972c 38ea4988 0x0023ef6c: 38ea49dc 0023ef84 6a7f484b 000003e8 0x0023ef7c: 00000001 38ea49dc 0023efb4 6a7f4963 0x0023ef8c: 000003e8 00000001 53ac3a95 00000000 0x0023ef9c: 6509f2a4 00000000 38ea49e4 0023f054 0x0023efac: 6a9eb2a8 00000000 0023efc0 6509f2e0 Instructions: (pc=0x67164778) 0x67164758: 90 90 90 90 8b ff 53 56 57 8b d9 e8 51 08 0a 00 0x67164768: 8b f8 85 ff 0f 84 b0 54 1c 00 33 f6 39 37 74 0a 0x67164778: 8b 0f 8b c6 5f 5e 89 0b 5b c3 6a 10 6a 08 ff 15 0x67164788: 4c 12 67 67 50 ff 15 48 12 67 67 85 c0 74 12 8b Register to memory mapping: EAX=0x00000000 is an unknown value EBX=0x0023ef50 is pointing into the stack for thread: 0x02149800 ECX=0x00000001 is an unknown value EDX=0x0068972c is an unknown value ESP=0x0023ef3c is pointing into the stack for thread: 0x02149800 EBP=0x0023ef54 is pointing into the stack for thread: 0x02149800 ESI=0x8000ffff is an unknown value EDI=0x00000000 is an unknown value Stack: [0x001f0000,0x00240000], sp=0x0023ef3c, free space=315k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [ieframe.dll+0x64778] Ordinal254+0xe0ec C [ieframe.dll+0x646a6] Ordinal254+0xe01a C [jscript9.dll+0x1a0f3b] DllCanUnloadNow+0x55989 C [jscript9.dll+0x2484b] JsVarToExtension+0x1f47f C [jscript9.dll+0x24963] JsVarToExtension+0x1f597 C [mshtml.dll+0x29f2e0] Ordinal105+0xe5c2b C [USER32.dll+0x162fa] gapfnScSendMessage+0x332 C [USER32.dll+0x16d3a] GetThreadDesktop+0xd7 C [USER32.dll+0x177c4] CharPrevW+0x138 C [USER32.dll+0x1788a] DispatchMessageW+0xf C [swt-win32-3655.dll+0x39b7] Java_org_eclipse_swt_internal_win32_OS_DispatchMessageW+0x31 J org.eclipse.swt.internal.win32.OS.DispatchMessageW(Lorg/eclipse/swt/internal/win32/MSG;)I J org.eclipse.swt.widgets.Display.readAndDispatch()Z j org.eclipse.jface.window.Window.open()I+49 j com.epmis.yw01.lpbase.LpbaseView.lpDataEditEvent(Z)V+67 j com.epmis.yw01.lpbase.LpbaseView.access$1(Lcom/epmis/yw01/lpbase/LpbaseView;Z)V+2 j com.epmis.yw01.lpbase.LpbaseView$8.doubleClick(Lorg/eclipse/jface/viewers/DoubleClickEvent;)V+15 j org.eclipse.jface.viewers.StructuredViewer$1.run()V+8 j org.eclipse.core.runtime.SafeRunner.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V+5 j org.eclipse.ui.internal.JFaceUtil$1.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V+1 j org.eclipse.jface.util.SafeRunnable.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V+4 j org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(Lorg/eclipse/jface/viewers/DoubleClickEvent;)V+32 j org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(Lorg/eclipse/swt/events/SelectionEvent;)V+71 j org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(Lorg/eclipse/swt/events/SelectionEvent;)V+5 j org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(Lorg/eclipse/swt/events/SelectionEvent;)V+20 j org.eclipse.jface.util.OpenStrategy.access$0(Lorg/eclipse/jface/util/OpenStrategy;Lorg/eclipse/swt/events/SelectionEvent;)V+2 j org.eclipse.jface.util.OpenStrategy$1.handleEvent(Lorg/eclipse/swt/widgets/Event;)V+23 J org.eclipse.swt.widgets.EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;)V j org.eclipse.swt.widgets.Display.readAndDispatch()Z+69 j org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Display;)V+9 j org.eclipse.ui.internal.Workbench.runUI()I+555 j org.eclipse.ui.internal.Workbench.access$4(Lorg/eclipse/ui/internal/Workbench;)I+1 j org.eclipse.ui.internal.Workbench$7.run()V+55 j org.eclipse.core.databinding.observable.Realm.runWithDefault(Lorg/eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V+12 j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+18 j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2 j com.epmis.system.Application.start(Lorg/eclipse/equinox/app/IApplicationContext;)Ljava/lang/Object;+51 j org.eclipse.equinox.internal.app.EclipseAppHandle.run(Ljava/lang/Object;)Ljava/lang/Object;+135 j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103 j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29 j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+149 j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+183 v ~StubRoutines::call_stub V [jvm.dll+0xfb05b] V [jvm.dll+0x18c901] V [jvm.dll+0xfb0dd] V [jvm.dll+0x1052d3] V [jvm.dll+0x105c16] V [jvm.dll+0xb70de] C [java.dll+0x721d] Java_sun_reflect_NativeMethodAccessorImpl_invoke0+0x15 j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87 j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161 j org.eclipse.equinox.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+211 j org.eclipse.equinox.launcher.Main.basicRun([Ljava/lang/String;)V+126 j org.eclipse.equinox.launcher.Main.run([Ljava/lang/String;)I+4 j org.eclipse.equinox.launcher.Main.main([Ljava/lang/String;)V+10 v ~StubRoutines::call_stub V [jvm.dll+0xfb05b] V [jvm.dll+0x18c901] V [jvm.dll+0xfb0dd] V [jvm.dll+0x95886] V [jvm.dll+0x9d6c3] C [javaw.exe+0x2155] C [javaw.exe+0x8614] C [kernel32.dll+0x1338a] BaseThreadInitThunk+0x12 C [ntdll.dll+0x39f72] RtlInitializeExceptionChain+0x63 C [ntdll.dll+0x39f45] RtlInitializeExceptionChain+0x36 Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) J org.eclipse.swt.internal.win32.OS.DispatchMessageW(Lorg/eclipse/swt/internal/win32/MSG;)I J org.eclipse.swt.widgets.Display.readAndDispatch()Z j org.eclipse.jface.window.Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;)V+23 j org.eclipse.jface.window.Window.open()I+49 j com.epmis.yw01.lpbase.LpbaseView.lpDataEditEvent(Z)V+67 j com.epmis.yw01.lpbase.LpbaseView.access$1(Lcom/epmis/yw01/lpbase/LpbaseView;Z)V+2 j com.epmis.yw01.lpbase.LpbaseView$8.doubleClick(Lorg/eclipse/jface/viewers/DoubleClickEvent;)V+15 j org.eclipse.jface.viewers.StructuredViewer$1.run()V+8 j org.eclipse.core.runtime.SafeRunner.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V+5 j org.eclipse.ui.internal.JFaceUtil$1.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V+1 j org.eclipse.jface.util.SafeRunnable.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V+4 j org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(Lorg/eclipse/jface/viewers/DoubleClickEvent;)V+32 j org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(Lorg/eclipse/swt/events/SelectionEvent;)V+71 j org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(Lorg/eclipse/swt/events/SelectionEvent;)V+5 j org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(Lorg/eclipse/swt/events/SelectionEvent;)V+20 j org.eclipse.jface.util.OpenStrategy.access$0(Lorg/eclipse/jface/util/OpenStrategy;Lorg/eclipse/swt/events/SelectionEvent;)V+2 j org.eclipse.jface.util.OpenStrategy$1.handleEvent(Lorg/eclipse/swt/widgets/Event;)V+23 J org.eclipse.swt.widgets.EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;)V J org.eclipse.swt.widgets.Widget.sendEvent(Lorg/eclipse/swt/widgets/Event;)V j org.eclipse.swt.widgets.Display.runDeferredEvents()Z+92 j org.eclipse.swt.widgets.Display.readAndDispatch()Z+69 j org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Display;)V+9 j org.eclipse.ui.internal.Workbench.runUI()I+555 j org.eclipse.ui.internal.Workbench.access$4(Lorg/eclipse/ui/internal/Workbench;)I+1 j org.eclipse.ui.internal.Workbench$7.run()V+55 j org.eclipse.core.databinding.observable.Realm.runWithDefault(Lorg/eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V+12 j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+18 j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2 j com.epmis.system.Application.start(Lorg/eclipse/equinox/app/IApplicationContext;)Ljava/lang/Object;+51 j org.eclipse.equinox.internal.app.EclipseAppHandle.run(Ljava/lang/Object;)Ljava/lang/Object;+135 j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103 j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29 j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+149 j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+183 v ~StubRoutines::call_stub j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87 j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161 j org.eclipse.equinox.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+211 j org.eclipse.equinox.launcher.Main.basicRun([Ljava/lang/String;)V+126 j org.eclipse.equinox.launcher.Main.run([Ljava/lang/String;)I+4 j org.eclipse.equinox.launcher.Main.main([Ljava/lang/String;)V+10 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x394ee800 JavaThread "Worker-0" [_thread_blocked, id=3264, stack(0x39d70000,0x39dc0000)] 0x39387800 JavaThread "Abandoned connection cleanup thread" daemon [_thread_blocked, id=3888, stack(0x3ab90000,0x3abe0000)] 0x38e09c00 JavaThread "Worker-JM" [_thread_blocked, id=3920, stack(0x391c0000,0x39210000)] 0x38dd3000 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=5104, stack(0x390e0000,0x39130000)] 0x38dad400 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=1616, stack(0x39050000,0x390a0000)] 0x38d90c00 JavaThread "State Data Manager" daemon [_thread_blocked, id=940, stack(0x38fc0000,0x39010000)] 0x02233400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=388, stack(0x38be0000,0x38c30000)] 0x02231000 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=3948, stack(0x38ad0000,0x38b20000)] 0x0221fc00 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=4928, stack(0x389a0000,0x389f0000)] 0x0221ec00 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=1172, stack(0x38910000,0x38960000)] 0x0221d000 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=4156, stack(0x387f0000,0x38840000)] 0x021ebc00 JavaThread "Attach Listener" daemon [_thread_blocked, id=4196, stack(0x386c0000,0x38710000)] 0x021e8c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=4276, stack(0x38630000,0x38680000)] 0x021e0c00 JavaThread "Finalizer" daemon [_thread_blocked, id=4252, stack(0x385a0000,0x385f0000)] 0x021dc000 JavaThread "Reference Handler" daemon [_thread_blocked, id=3728, stack(0x38510000,0x38560000)] =>0x02149800 JavaThread "main" [_thread_in_native, id=4680, stack(0x001f0000,0x00240000)] Other Threads: 0x021d7800 VMThread [stack: 0x02090000,0x020e0000] [id=1724] 0x0223ec00 WatcherThread [stack: 0x38c30000,0x38c80000] [id=4164] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 39424K, used 29698K [0x04250000, 0x06d10000, 0x14250000) eden space 35072K, 82% used [0x04250000, 0x05e95398, 0x06490000) from space 4352K, 17% used [0x06490000, 0x0654b830, 0x068d0000) to space 4352K, 0% used [0x068d0000, 0x068d0000, 0x06d10000) tenured generation total 87424K, used 15165K [0x14250000, 0x197b0000, 0x34250000) the space 87424K, 17% used [0x14250000, 0x1511f4b0, 0x1511f600, 0x197b0000) compacting perm gen total 26624K, used 26559K [0x34250000, 0x35c50000, 0x38250000) the space 26624K, 99% used [0x34250000, 0x35c3fea0, 0x35c40000, 0x35c50000) No shared spaces configured. Code Cache [0x02250000, 0x02658000, 0x04250000) total_blobs=2126 nmethods=1934 adapters=134 free_code_cache=29405120 largest_free_block=53120 Dynamic libraries: 0x00400000 - 0x00425000 E:\Program Files\Java\jdk1.6.0_35\bin\javaw.exe 0x77710000 - 0x77890000 C:\Windows\SysWOW64\ntdll.dll 0x75e70000 - 0x75f80000 C:\Windows\syswow64\kernel32.dll 0x75270000 - 0x752b7000 C:\Windows\syswow64\KERNELBASE.dll 0x76480000 - 0x76520000 C:\Windows\syswow64\ADVAPI32.dll 0x76230000 - 0x762dc000 C:\Windows\syswow64\msvcrt.dll 0x76370000 - 0x76389000 C:\Windows\SysWOW64\sechost.dll 0x75440000 - 0x75530000 C:\Windows\syswow64\RPCRT4.dll 0x75010000 - 0x75070000 C:\Windows\syswow64\SspiCli.dll 0x75000000 - 0x7500c000 C:\Windows\syswow64\CRYPTBASE.dll 0x752c0000 - 0x753c0000 C:\Windows\syswow64\USER32.dll 0x75d40000 - 0x75dd0000 C:\Windows\syswow64\GDI32.dll 0x759a0000 - 0x759aa000 C:\Windows\syswow64\LPK.dll 0x763e0000 - 0x7647d000 C:\Windows\syswow64\USP10.dll 0x757b0000 - 0x75810000 C:\Windows\system32\IMM32.DLL 0x75070000 - 0x7513c000 C:\Windows\syswow64\MSCTF.dll 0x7c340000 - 0x7c396000 E:\Program Files\Java\jdk1.6.0_35\jre\bin\msvcr71.dll 0x6d8c0000 - 0x6db6f000 E:\Program Files\Java\jdk1.6.0_35\jre\bin\client\jvm.dll 0x759b0000 - 0x759e2000 C:\Windows\syswow64\WINMM.dll 0x74c40000 - 0x74c8c000 C:\Windows\system32\apphelp.dll 0x6d870000 - 0x6d87c000 E:\Program Files\Java\jdk1.6.0_35\jre\bin\verify.dll 0x6d3d0000 - 0x6d3ef000 E:\Program Files\Java\jdk1.6.0_35\jre\bin\java.dll 0x6d420000 - 0x6d449000 E:\Program Files\Java\jdk1.6.0_35\jre\bin\jdwp.dll 0x6d740000 - 0x6d746000 E:\Program Files\Java\jdk1.6.0_35\jre\bin\npt.dll 0x6d8b0000 - 0x6d8bf000 E:\Program Files\Java\jdk1.6.0_35\jre\bin\zip.dll 0x6d2b0000 - 0x6d2b7000 E:\Program Files\Java\jdk1.6.0_35\jre\bin\dt_socket.dll 0x75df0000 - 0x75e25000 C:\Windows\syswow64\WS2_32.dll 0x776e0000 - 0x776e6000 C:\Windows\syswow64\NSI.dll 0x74380000 - 0x74390000 C:\Windows\system32\NLAapi.dll 0x74370000 - 0x74380000 C:\Windows\system32\napinsp.dll 0x74350000 - 0x74362000 C:\Windows\system32\pnrpnsp.dll 0x74dc0000 - 0x74dfc000 C:\Windows\System32\mswsock.dll 0x74d60000 - 0x74da4000 C:\Windows\system32\DNSAPI.dll 0x74340000 - 0x74348000 C:\Windows\System32\winrnr.dll 0x74690000 - 0x746ac000 C:\Windows\system32\IPHLPAPI.DLL 0x746c0000 - 0x746c7000 C:\Windows\system32\WINNSI.DLL 0x74d00000 - 0x74d38000 C:\Windows\System32\fwpuclnt.dll 0x74d40000 - 0x74d46000 C:\Windows\system32\rasadhlp.dll 0x74d50000 - 0x74d55000 C:\Windows\System32\wshtcpip.dll 0x74a00000 - 0x74a16000 C:\Windows\system32\CRYPTSP.dll 0x749c0000 - 0x749fb000 C:\Windows\system32\rsaenh.dll 0x75970000 - 0x75987000 C:\Windows\syswow64\USERENV.dll 0x75de0000 - 0x75deb000 C:\Windows\syswow64\profapi.dll 0x6d6b0000 - 0x6d6c3000 E:\Program Files\Java\jdk1.6.0_35\jre\bin\net.dll 0x74db0000 - 0x74db6000 C:\Windows\System32\wship6.dll 0x6d6d0000 - 0x6d6d9000 E:\Program Files\Java\jdk1.6.0_35\jre\bin\nio.dll 0x72000000 - 0x7200d000 G:\Devlopment_epmis\eclipse for jq\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810\eclipse_1309.dll 0x73fb0000 - 0x7414e000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\COMCTL32.dll 0x75750000 - 0x757a7000 C:\Windows\syswow64\SHLWAPI.dll 0x74ce0000 - 0x74ce9000 C:\Windows\system32\VERSION.dll 0x39610000 - 0x39673000 G:\workspace_eclipse\.metadata\.plugins\org.eclipse.pde.core\epmis-cs.product\org.eclipse.osgi\bundles\3\1\.cp\swt-win32-3655.dll 0x75810000 - 0x7596c000 C:\Windows\syswow64\ole32.dll 0x765b0000 - 0x7663f000 C:\Windows\syswow64\OLEAUT32.dll 0x76640000 - 0x766bb000 C:\Windows\syswow64\comdlg32.dll 0x766c0000 - 0x7730a000 C:\Windows\syswow64\SHELL32.dll 0x76060000 - 0x76222000 C:\Windows\syswow64\WININET.dll 0x75e60000 - 0x75e64000 C:\Windows\syswow64\api-ms-win-downlevel-user32-l1-1-0.dll 0x763d0000 - 0x763d4000 C:\Windows\syswow64\api-ms-win-downlevel-shlwapi-l1-1-0.dll 0x75990000 - 0x75994000 C:\Windows\syswow64\api-ms-win-downlevel-version-l1-1-0.dll 0x76050000 - 0x76053000 C:\Windows\syswow64\api-ms-win-downlevel-normaliz-l1-1-0.dll 0x76010000 - 0x76013000 C:\Windows\syswow64\normaliz.DLL 0x75530000 - 0x7574b000 C:\Windows\syswow64\iertutil.dll 0x759f0000 - 0x759f5000 C:\Windows\syswow64\api-ms-win-downlevel-advapi32-l1-1-0.dll 0x75b20000 - 0x75ba0000 C:\Windows\system32\uxtheme.dll 0x74740000 - 0x74753000 C:\Windows\system32\dwmapi.dll 0x003e0000 - 0x003fd000 G:\workspace_eclipse\.metadata\.plugins\org.eclipse.pde.core\epmis-cs.product\org.eclipse.osgi\bundles\3\1\.cp\swt-gdip-win32-3655.dll 0x723f0000 - 0x72580000 C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.18455_none_72d576ad8665e853\gdiplus.dll 0x399f0000 - 0x39b20000 C:\Windows\system32\WindowsCodecs.dll 0x74c00000 - 0x74c3c000 C:\Windows\system32\oleacc.dll 0x74660000 - 0x7466d000 C:\Windows\system32\dhcpcsvc6.DLL 0x72c30000 - 0x72c42000 C:\Windows\system32\dhcpcsvc.DLL 0x641a0000 - 0x6422a000 C:\Users\Administrator\AppData\Roaming\TaobaoProtect\TaobaoProtectSE.dll 0x753c0000 - 0x753c5000 C:\Windows\syswow64\PSAPI.DLL 0x6f0a0000 - 0x6f195000 C:\Windows\system32\propsys.dll 0x76520000 - 0x765a3000 C:\Windows\syswow64\CLBCatQ.DLL 0x6d0a0000 - 0x6d20f000 C:\Windows\system32\explorerframe.dll 0x70110000 - 0x7013f000 C:\Windows\system32\DUser.dll 0x6cfe0000 - 0x6d092000 C:\Windows\system32\DUI70.dll 0x74c90000 - 0x74c9e000 C:\Windows\system32\RpcRtRemote.dll 0x732d0000 - 0x732d5000 C:\Windows\system32\msimg32.dll 0x67100000 - 0x67c3f000 C:\Windows\SysWOW64\ieframe.dll 0x6ae60000 - 0x6ae64000 C:\Windows\SysWOW64\api-ms-win-downlevel-shell32-l1-1-0.dll 0x74720000 - 0x74724000 C:\Windows\system32\api-ms-win-downlevel-shlwapi-l2-1-0.dll 0x75140000 - 0x7526c000 C:\Windows\syswow64\urlmon.dll 0x75dd0000 - 0x75dd4000 C:\Windows\syswow64\api-ms-win-downlevel-ole32-l1-1-0.dll 0x6fcf0000 - 0x6fd4f000 C:\Windows\system32\SXS.DLL 0x64e00000 - 0x65eae000 C:\Windows\SysWOW64\mshtml.dll 0x74650000 - 0x74658000 C:\Windows\system32\Secur32.dll 0x72b20000 - 0x72b4e000 C:\Windows\system32\mlang.dll 0x74640000 - 0x74644000 C:\Windows\system32\api-ms-win-downlevel-advapi32-l2-1-0.dll 0x6ae50000 - 0x6ae5b000 C:\Windows\system32\msimtf.dll 0x6a7d0000 - 0x6abe1000 C:\Windows\SysWOW64\jscript9.dll 0x75a00000 - 0x75b20000 C:\Windows\syswow64\CRYPT32.dll 0x763c0000 - 0x763cc000 C:\Windows\syswow64\MSASN1.dll 0x6a790000 - 0x6a7c1000 C:\Windows\system32\msls31.dll 0x66c10000 - 0x66f57000 C:\Windows\system32\d2d1.dll 0x6c710000 - 0x6c845000 C:\Windows\system32\DWrite.dll 0x6a740000 - 0x6a78c000 C:\Windows\system32\dxgi.dll 0x76020000 - 0x7604e000 C:\Windows\syswow64\WINTRUST.dll 0x6a5c0000 - 0x6a735000 C:\Windows\system32\d3d11.dll 0x66a20000 - 0x66c09000 C:\Windows\system32\D3D10Warp.dll 0x75ba0000 - 0x75d3d000 C:\Windows\syswow64\SETUPAPI.dll 0x76390000 - 0x763b7000 C:\Windows\syswow64\CFGMGR32.dll 0x76340000 - 0x76352000 C:\Windows\syswow64\DEVOBJ.dll 0x6cc50000 - 0x6cc89000 C:\Windows\system32\MMDevAPI.DLL 0x6a590000 - 0x6a5c0000 C:\Windows\system32\wdmaud.drv 0x6a580000 - 0x6a584000 C:\Windows\system32\ksuser.dll 0x6a570000 - 0x6a577000 C:\Windows\system32\AVRT.dll 0x6cc90000 - 0x6ccc6000 C:\Windows\system32\AUDIOSES.DLL 0x6a560000 - 0x6a568000 C:\Windows\system32\msacm32.drv 0x753d0000 - 0x753e4000 C:\Windows\syswow64\MSACM32.dll 0x6a550000 - 0x6a557000 C:\Windows\system32\midimap.dll 0x73e60000 - 0x73eba000 C:\Windows\System32\netprofm.dll 0x74ca0000 - 0x74ca8000 C:\Windows\System32\npmproxy.dll 0x66990000 - 0x66a1c000 C:\Windows\SysWOW64\uiautomationcore.dll 0x72c00000 - 0x72c21000 C:\Windows\system32\ntmarta.dll 0x753f0000 - 0x75435000 C:\Windows\syswow64\WLDAP32.dll 0x6a530000 - 0x6a544000 C:\Windows\system32\ATL.DLL 0x74960000 - 0x74977000 C:\Windows\system32\bcrypt.dll 0x74920000 - 0x7495d000 C:\Windows\SysWOW64\bcryptprimitives.dll 0x670c0000 - 0x67100000 C:\Windows\SysWOW64\Dxtrans.dll 0x6a520000 - 0x6a52a000 C:\Windows\SysWOW64\ddrawex.dll 0x667e0000 - 0x668c7000 C:\Windows\SysWOW64\DDRAW.dll 0x6a510000 - 0x6a516000 C:\Windows\SysWOW64\DCIMAN32.dll 0x66780000 - 0x667dc000 C:\Windows\SysWOW64\Dxtmsft.dll VM Arguments: jvm_args: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:51582 -Xms128m -Xmx768m -Dfile.encoding=GBK java_command: org.eclipse.equinox.launcher.Main -launcher G:\Devlopment_epmis\eclipse for jq\eclipse.exe -name Eclipse -showsplash 600 -product epmis-cs.product -data G:\workspace_eclipse/../runtime-epmis-cs.product -configuration file:G:/workspace_eclipse/.metadata/.plugins/org.eclipse.pde.core/epmis-cs.product/ -dev file:G:/workspace_eclipse/.metadata/.plugins/org.eclipse.pde.core/epmis-cs.product/dev.properties -os win32 -ws win32 -arch x86 -nl zh_CN -consoleLog Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=E:\Program Files\Java\jdk1.6.0_35 PATH=E:\Program Files\Java\jdk1.6.0_35\jre\bin;;C:\Python27;E:\Program Files\Java\jdk1.6.0_35\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;E:\Program Files\TortoiseSVN\bin;e:\AppCan\AppCanStudioPersonal\HDK\emulator\mas\;C:\AppCan\AppCanStudioPersonal\HDK\emulator\mas\;D:\Program Files (x86)\MySQL\MySQL Server 5.5\bin USERNAME=Administrator OS=Windows_NT PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 10, GenuineIntel --------------- S Y S T E M --------------- OS: Windows 7 , 64 bit Build 7601 Service Pack 1 CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 23 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3 Memory: 4k page, physical 4158584k(1726028k free), swap 8315304k(4491184k free) vm_info: Java HotSpot(TM) Client VM (20.10-b01) for windows-x86 JRE (1.6.0_35-b10), built on Aug 28 2012 17:31:51 by "java_re" with MS VC++ 7.1 (VS2003) time: Tue Sep 23 17:51:45 2014 elapsed time: 145 seconds
myeclipse tomcat7.0无法启动,报错
之前导入过ssh项目,运行后报错,然后把ssh项目删掉了,原本存在的一个项目中没有ssh框架,现在启动tomcat就开始报错了,在出错时去网页上试过不能打开网页。 配置的tomcat7.0,jdk1.7,myeclipse10 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.SetAllPropertiesRule begin 警告: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'URLEncoding' to 'utf-8' did not find a matching property. 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server version: Apache Tomcat/7.0.70 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server built: Jun 15 2016 16:27:45 UTC 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server number: 7.0.70.0 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: OS Name: Windows 7 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: OS Version: 6.1 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Architecture: amd64 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Java Home: C:\Program Files\Java\jdk1.7.0_79\jre 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: JVM Version: 1.7.0_79-b15 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: JVM Vendor: Oracle Corporation 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: CATALINA_BASE: D:\apache-tomcat-7.0.70 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: CATALINA_HOME: D:\apache-tomcat-7.0.70 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:54505 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dcatalina.home=D:\apache-tomcat-7.0.70 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dcatalina.base=D:\apache-tomcat-7.0.70 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Djava.endorsed.dirs=D:\apache-tomcat-7.0.70/common/endorsed 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Djava.io.tmpdir=D:\apache-tomcat-7.0.70\temp 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Djava.library.path=C:\Program Files\Java\jdk1.7.0_79\bin;D:\apache-tomcat-7.0.70\bin 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dsun.io.useCanonCaches=false 三月 16, 2017 4:20:07 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 信息: Loaded APR based Apache Tomcat Native library 1.2.7 using APR version 1.5.2. 三月 16, 2017 4:20:07 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 三月 16, 2017 4:20:08 下午 org.apache.catalina.core.AprLifecycleListener initializeSSL 信息: OpenSSL successfully initialized (OpenSSL 1.0.2h 3 May 2016) 三月 16, 2017 4:20:08 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-apr-8080"] 三月 16, 2017 4:20:08 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["ajp-apr-8009"] 三月 16, 2017 4:20:08 下午 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 2141 ms 三月 16, 2017 4:20:08 下午 org.apache.catalina.core.StandardService startInternal 信息: Starting service Catalina 三月 16, 2017 4:20:08 下午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/7.0.70 三月 16, 2017 4:20:08 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory D:\apache-tomcat-7.0.70\webapps\coding 三月 16, 2017 4:20:10 下午 org.apache.catalina.core.ApplicationContext log 信息: No Spring WebApplicationInitializer types detected on classpath 三月 16, 2017 4:20:10 下午 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring root WebApplicationContext [org.springframework.web.context.ContextLoader]Root WebApplicationContext: initialization started [org.springframework.web.context.support.XmlWebApplicationContext]Refreshing Root WebApplicationContext: startup date [Thu Mar 16 16:20:11 CST 2017]; root of context hierarchy [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]Loading XML bean definitions from class path resource [spring.xml] [org.springframework.context.annotation.ClassPathBeanDefinitionScanner]JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]Loading XML bean definitions from class path resource [spring-hibernate.xml] [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer]Loading properties file from class path resource [config.properties] [org.springframework.beans.factory.support.DefaultListableBeanFactory]Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6be0e7a9: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,baseDao,demoAuthService,demoBugService,demoLogUserService,demoMenuService,demoOnlineService,demoRepairService,demoRoleService,demoUserService,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,dataSource,sessionFactory,transactionManager,transactionAdvice,org.springframework.aop.config.internalAutoProxyCreator,transactionPointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,druid-stat-interceptor,druid-stat-pointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy [com.alibaba.druid.pool.DruidAbstractDataSource]maxIdle is deprecated [com.alibaba.druid.pool.DruidDataSource]{dataSource-1} inited [org.hibernate.annotations.common.Version]HCANN000001: Hibernate Commons Annotations {4.0.1.Final} [org.hibernate.Version]HHH000412: Hibernate Core {4.1.7.Final} [org.hibernate.cfg.Environment]HHH000206: hibernate.properties not found [org.hibernate.cfg.Environment]HHH000021: Bytecode provider name : javassist [com.alibaba.druid.pool.DruidDataSource]create connection error com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1117) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:350) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2393) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2430) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2215) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:813) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:334) at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:142) at com.alibaba.druid.filter.stat.StatFilter.connection_connect(StatFilter.java:211) at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:136) at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1207) at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1261) at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:1197) Caused by: java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at java.net.Socket.<init>(Socket.java:425) at java.net.Socket.<init>(Socket.java:241) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:257) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300) ... 18 more
Server Tomcat v9.0 Server at localhost failed to start.
在网页上运行可以打开Tomcat ![图片说明](https://img-ask.csdn.net/upload/201904/02/1554202980_793102.jpg) 关掉startup.bat在eclipse上运行时出错,怎么解决!!! ![图片说明](https://img-ask.csdn.net/upload/201904/02/1554202864_193867.jpg) 四月 02, 2019 6:58:40 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server.服务器版本: Apache Tomcat/9.0.16 四月 02, 2019 6:58:40 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server.构建: Feb 4 2019 16:30:29 UTC 四月 02, 2019 6:58:40 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server version number: 9.0.16.0 四月 02, 2019 6:58:40 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: OS Name: Windows 10 四月 02, 2019 6:58:40 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: OS.版本: 10.0 四月 02, 2019 6:58:40 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: 结.造: amd64 四月 02, 2019 6:58:40 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Java 环境变量: C:\Program Files\Java\jdk1.8.0_201\jre 四月 02, 2019 6:58:40 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: JVM 版本: 1.8.0_201-b09 四月 02, 2019 6:58:40 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: JVM.供应商: Oracle Corporation 四月 02, 2019 6:58:40 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: CATALINA_BASE: E:\Program flies\.metadata\.plugins\org.eclipse.wst.server.core\tmp0 四月 02, 2019 6:58:40 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: CATALINA_HOME: E:\Program Files\apache-tomcat-9.0.16 四月 02, 2019 6:58:40 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dcatalina.base=E:\Program flies\.metadata\.plugins\org.eclipse.wst.server.core\tmp0 四月 02, 2019 6:58:40 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dcatalina.home=E:\Program Files\apache-tomcat-9.0.16 四月 02, 2019 6:58:40 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dwtp.deploy=E:\Program flies\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps 四月 02, 2019 6:58:40 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Djava.endorsed.dirs=E:\Program Files\apache-tomcat-9.0.16\endorsed 四月 02, 2019 6:58:40 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dfile.encoding=GBK 四月 02, 2019 6:58:40 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 信息: Loaded APR based Apache Tomcat Native library [1.2.21] using APR version [1.6.5]. 四月 02, 2019 6:58:40 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 四月 02, 2019 6:58:40 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 信息: APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 四月 02, 2019 6:58:40 下午 org.apache.catalina.core.AprLifecycleListener initializeSSL 信息: OpenSSL successfully initialized [OpenSSL 1.1.1a 20 Nov 2018] 四月 02, 2019 6:58:41 下午 org.apache.coyote.AbstractProtocol init 信息: 初始化协议处理器 ["http-nio-8080"] 四月 02, 2019 6:58:41 下午 org.apache.coyote.AbstractProtocol init 信息: 初始化协议处理器 ["ajp-nio-8009"] 四月 02, 2019 6:58:41 下午 org.apache.catalina.startup.Catalina load 信息: 服务器在[963]毫秒内初始化 四月 02, 2019 6:58:41 下午 org.apache.catalina.core.StandardService startInternal 信息: Starting service [Catalina] 四月 02, 2019 6:58:41 下午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet engine: [Apache Tomcat/9.0.16] 四月 02, 2019 6:58:45 下午 org.apache.jasper.servlet.TldScanner scanJars 信息: 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。 四月 02, 2019 6:58:48 下午 org.apache.jasper.servlet.TldScanner scanJars 信息: 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。 四月 02, 2019 6:58:50 下午 org.apache.jasper.servlet.TldScanner scanJars 信息: 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。 四月 02, 2019 6:58:50 下午 org.apache.coyote.AbstractProtocol start 信息: 开始协议处理句柄["http-nio-8080"] 四月 02, 2019 6:58:50 下午 org.apache.coyote.AbstractProtocol start 信息: 开始协议处理句柄["ajp-nio-8009"] 四月 02, 2019 6:58:50 下午 org.apache.catalina.startup.Catalina start 信息: Server startup in [9,297] milliseconds 四月 02, 2019 6:58:50 下午 org.apache.catalina.core.StandardServer await 严重: Failed to create server shutdown socket on address [localhost] and port [8080] (base port [8080] and offset [0]) java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at org.apache.catalina.core.StandardServer.await(StandardServer.java:582) at org.apache.catalina.startup.Catalina.await(Catalina.java:726) at org.apache.catalina.startup.Catalina.start(Catalina.java:672) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492) 四月 02, 2019 6:58:50 下午 org.apache.coyote.AbstractProtocol pause 信息: Pausing ProtocolHandler ["http-nio-8080"] 四月 02, 2019 6:58:50 下午 org.apache.coyote.AbstractProtocol pause 信息: Pausing ProtocolHandler ["ajp-nio-8009"] 四月 02, 2019 6:58:50 下午 org.apache.catalina.core.StandardService stopInternal 信息: Stopping service [Catalina] 四月 02, 2019 6:58:50 下午 org.apache.coyote.AbstractProtocol stop 信息: Stopping ProtocolHandler ["http-nio-8080"] 四月 02, 2019 6:58:50 下午 org.apache.coyote.AbstractProtocol stop 信息: Stopping ProtocolHandler ["ajp-nio-8009"] 四月 02, 2019 6:58:50 下午 org.apache.coyote.AbstractProtocol destroy 信息: 正在摧毁协议处理器 ["http-nio-8080"] 四月 02, 2019 6:58:50 下午 org.apache.coyote.AbstractProtocol destroy 信息: 正在摧毁协议处理器 ["ajp-nio-8009"]
Android Studio崩溃异常Problematic frame: V [jvm.dll+0x44c6d5]
## 今天在写代码的时候,想着把之前写过的项目的一部分代码拷贝过来,于是打开了另一个Android Studio的新窗口,想着两个窗口一起看会方面点,但是不巧,一打开后我的Android studio直接闪退,试了几次也是如此,于是我看了一下错误报告 ``` A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000059b2c6d5, pid=6332, tid=0x0000000000001774 # # **JRE version: OpenJDK Runtime Environment (8.0_152-b01) (build 1.8.0_152-release-1343-b01) # Java VM: OpenJDK 64-Bit Server VM (25.152-b01 mixed mode windows-amd64 compressed oops) # Problematic frame: # V [jvm.dll+0x44c6d5]** # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows ``` 我先是在百度看了一下,说是可能是内存溢出的问题,但是我改了jvm的内存到了4096M以后依旧没解决,其他的人似乎没有我这样的问题,我就很纳闷。。。现在无法解决,求大佬们看看怎么回事,现在软件一打开半分钟就闪退。。。 ps:昨天还是好的,自从今天开多了窗口以后就成这样了。。。
MavenWeb项目使用mybatis的分页查询插件,在项目部署时出现错误
MavenWeb项目使用mybatis的分页查询插件,在项目部署时出现错误,在程序中 运行可以查询出来,但是我只要用tomcat启动项目就报错,把mybatis的分页插件 配置注掉后就又可以部署成功,有没有大佬知道是什么情况!?? 下面是报错信息 ``` D:\apache-tomcat-9.0.19\bin\catalina.bat run [2019-06-22 06:33:48,732] Artifact SSM整合:war exploded: Waiting for server connection to start artifact deployment... Using CATALINA_BASE: "C:\Users\95638\.IntelliJIdea2018.3\system\tomcat\Unnamed_SSM整合" Using CATALINA_HOME: "D:\apache-tomcat-9.0.19" Using CATALINA_TMPDIR: "D:\apache-tomcat-9.0.19\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_144" Using CLASSPATH: "D:\apache-tomcat-9.0.19\bin\bootstrap.jar;D:\apache-tomcat-9.0.19\bin\tomcat-juli.jar" 22-Jun-2019 18:33:49.881 警告 [main] org.apache.tomcat.util.digester.Digester.endElement No rules found matching [Server/Service/Context] 22-Jun-2019 18:33:49.917 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.服务器版本: Apache Tomcat/9.0.19 22-Jun-2019 18:33:49.917 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.构建: Apr 12 2019 14:22:48 UTC 22-Jun-2019 18:33:49.917 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.19.0 22-Jun-2019 18:33:49.917 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10 22-Jun-2019 18:33:49.917 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.版本: 10.0 22-Jun-2019 18:33:49.917 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 结.造: amd64 22-Jun-2019 18:33:49.917 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 环境变量: C:\Program Files\Java\jdk1.8.0_144\jre 22-Jun-2019 18:33:49.917 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM 版本: 1.8.0_144-b01 22-Jun-2019 18:33:49.917 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.供应商: Oracle Corporation 22-Jun-2019 18:33:49.917 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Users\95638\.IntelliJIdea2018.3\system\tomcat\Unnamed_SSM整合 22-Jun-2019 18:33:49.917 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: D:\apache-tomcat-9.0.19 22-Jun-2019 18:33:49.918 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\95638\.IntelliJIdea2018.3\system\tomcat\Unnamed_SSM整合\conf\logging.properties 22-Jun-2019 18:33:49.918 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 22-Jun-2019 18:33:49.918 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote= 22-Jun-2019 18:33:49.918 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099 22-Jun-2019 18:33:49.918 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false 22-Jun-2019 18:33:49.918 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false 22-Jun-2019 18:33:49.918 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1 22-Jun-2019 18:33:49.918 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 22-Jun-2019 18:33:49.918 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 22-Jun-2019 18:33:49.918 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs= 22-Jun-2019 18:33:49.918 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\95638\.IntelliJIdea2018.3\system\tomcat\Unnamed_SSM整合 22-Jun-2019 18:33:49.918 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=D:\apache-tomcat-9.0.19 22-Jun-2019 18:33:49.918 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=D:\apache-tomcat-9.0.19\temp 22-Jun-2019 18:33:49.918 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.21] using APR version [1.6.5]. 22-Jun-2019 18:33:49.918 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 22-Jun-2019 18:33:49.919 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 22-Jun-2019 18:33:49.922 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1a 20 Nov 2018] 22-Jun-2019 18:33:50.039 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["http-nio-8080"] 22-Jun-2019 18:33:50.062 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["ajp-nio-8009"] 22-Jun-2019 18:33:50.066 信息 [main] org.apache.catalina.startup.Catalina.load 服务器在[448]毫秒内初始化 22-Jun-2019 18:33:50.094 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina] 22-Jun-2019 18:33:50.094 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.19] 22-Jun-2019 18:33:50.107 信息 [main] org.apache.coyote.AbstractProtocol.start 开始协议处理句柄["http-nio-8080"] 22-Jun-2019 18:33:50.121 信息 [main] org.apache.coyote.AbstractProtocol.start 开始协议处理句柄["ajp-nio-8009"] 22-Jun-2019 18:33:50.124 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in [58] milliseconds Connected to server [2019-06-22 06:33:50,289] Artifact SSM整合:war exploded: Artifact is being deployed, please wait... 22-Jun-2019 18:33:52.765 信息 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。 22-Jun-2019 18:33:52.844 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.context.ContextLoader.initWebApplicationContext Root WebApplicationContext: initialization started 22-Jun-2019 18:33:53.914 信息 [MLog-Init-Reporter] com.mchange.v2.log.MLog. MLog clients using java 1.4+ standard logging. 22-Jun-2019 18:33:53.996 信息 [RMI TCP Connection(3)-127.0.0.1] com.mchange.v2.c3p0.C3P0Registry. Initializing c3p0-0.9.5.4 [built 23-March-2019 23:00:48 -0700; debug? true; trace: 10] 22-Jun-2019 18:33:54.097 警告 [RMI TCP Connection(3)-127.0.0.1] org.springframework.context.support.AbstractApplicationContext.refresh Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'departmentService': Unsatisfied dependency expressed through field 'departmentMapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'departmentMapper' defined in file [E:\SSM整合\out\artifacts\SSM_war_exploded\WEB-INF\classes\com\neuedu\dao\DepartmentMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring.xml]: Cannot create inner bean 'com.github.pagehelper.PageInterceptor#360582c8' of type [com.github.pagehelper.PageInterceptor] while setting bean property 'plugins' with key [0]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.github.pagehelper.PageInterceptor] for bean with name 'com.github.pagehelper.PageInterceptor#360582c8' defined in class path resource [spring.xml]; nested exception is java.lang.ClassNotFoundException: com.github.pagehelper.PageInterceptor 22-Jun-2019 18:33:54.103 严重 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.context.ContextLoader.initWebApplicationContext Context initialization failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'departmentService': Unsatisfied dependency expressed through field 'departmentMapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'departmentMapper' defined in file [E:\SSM整合\out\artifacts\SSM_war_exploded\WEB-INF\classes\com\neuedu\dao\DepartmentMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring.xml]: Cannot create inner bean 'com.github.pagehelper.PageInterceptor#360582c8' of type [com.github.pagehelper.PageInterceptor] while setting bean property 'plugins' with key [0]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.github.pagehelper.PageInterceptor] for bean with name 'com.github.pagehelper.PageInterceptor#360582c8' defined in class path resource [spring.xml]; nested exception is java.lang.ClassNotFoundException: com.github.pagehelper.PageInterceptor at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1411) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:845) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:400) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4682) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5150) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695) at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1728) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:289) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:457) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:406) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:289) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468) at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357) at sun.rmi.transport.Transport$1.run(Transport.java:200) at sun.rmi.transport.Transport$1.run(Transport.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:196) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'departmentMapper' defined in file [E:\SSM整合\out\artifacts\SSM_war_exploded\WEB-INF\classes\com\neuedu\dao\DepartmentMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring.xml]: Cannot create inner bean 'com.github.pagehelper.PageInterceptor#360582c8' of type [com.github.pagehelper.PageInterceptor] while setting bean property 'plugins' with key [0]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.github.pagehelper.PageInterceptor] for bean with name 'com.github.pagehelper.PageInterceptor#360582c8' defined in class path resource [spring.xml]; nested exception is java.lang.ClassNotFoundException: com.github.pagehelper.PageInterceptor at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:314) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1681) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1433) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1171) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593) ... 60 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring.xml]: Cannot create inner bean 'com.github.pagehelper.PageInterceptor#360582c8' of type [com.github.pagehelper.PageInterceptor] while setting bean property 'plugins' with key [0]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.github.pagehelper.PageInterceptor] for bean with name 'com.github.pagehelper.PageInterceptor#360582c8' defined in class path resource [spring.xml]; nested exception is java.lang.ClassNotFoundException: com.github.pagehelper.PageInterceptor at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:361) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:124) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedArray(BeanDefinitionValueResolver.java:388) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:155) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1681) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1433) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:303) ... 73 more Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.github.pagehelper.PageInterceptor] for bean with name 'com.github.pagehelper.PageInterceptor#360582c8' defined in class path resource [spring.xml]; nested exception is java.lang.ClassNotFoundException: com.github.pagehelper.PageInterceptor at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1392) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:487) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:346) ... 85 more Caused by: java.lang.ClassNotFoundException: com.github.pagehelper.PageInterceptor at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1363) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1186) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.springframework.util.ClassUtils.forName(ClassUtils.java:275) at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:444) at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1457) at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1384) ... 87 more 22-Jun-2019 18:33:54.140 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file 22-Jun-2019 18:33:54.142 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors [2019-06-22 06:33:54,184] Artifact SSM整合:war exploded: Error during artifact deployment. See server log for details. 22-Jun-2019 18:34:00.118 信息 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [D:\apache-tomcat-9.0.19\webapps\manager] 22-Jun-2019 18:34:00.415 信息 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\apache-tomcat-9.0.19\webapps\manager] has finished in [297] ms ``` # springmvc.xml的配置 ``` <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.0.xsd"> <context:component-scan base-package="com.neuedu" use-default-filters="false"> <!--指定指挥扫描那些类型的注解,这里指定只会扫描com.neuedu下或子包中的注解@Controller。其他注解不扫描--> <context:include-filter type="annotation" expression="org.springframework.stereotype.Controller"/> </context:component-scan> <!--导入依赖注入的注解解析器 --> <context:annotation-config></context:annotation-config> <!--开启基于注解的处理器映射器与处理器适配器 --> <mvc:annotation-driven ></mvc:annotation-driven> <!--配置吧静态资源交给tomcat来处理(springmvc框架就不要处理了) --> <mvc:default-servlet-handler></mvc:default-servlet-handler> <!-- 视图解析器 解析jsp解析,默认使用jstl标签,classpath下的得有jstl的包 --> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <!-- 配置jsp路径的前缀 --> <property name="prefix" value="/WEB-INF/jsp/"/> <!-- 配置jsp路径的后缀 --> <property name="suffix" value=".jsp"/> </bean> </beans> ``` # spring.xml的配置 ``` <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/cache" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.0.xsd http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd"> <!--配置对service及dao包的扫描 --> <context:component-scan base-package="com.neuedu"> <!--配置对那些注解不进行扫描(不扫描注解@controller,因为他被springmvc扫描了) --> <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/> </context:component-scan> <!--配置开启依赖注入的注解解析器(主要针对@Autoired,@Resource注解) --> <context:annotation-config/> <!--配置通过引入配置文件来进行数据库连接 --> <context:property-placeholder location="classpath:jdbc"/> <!--配置基于c3p0的数据库连接池,该类在c3p0对应的jar包中 --> <bean id="c3p0DataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"> <!--配置数据库连接的基本属性 --> <property name="driverClass" value="${jdbc.driverClass}"/> <property name="jdbcUrl" value="${jdbc.dburl}"/> <property name="user" value="${jdbc.username}"/> <property name="password" value="${jdbc.password}"/> </bean> <!--配置sqlSessionFactory 该类在Mybatis-spring jar包中--> <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"> <!--通过整合mybatis框架的核心配置文件,通过属性configLocation来指定 --> <property name="configLocation" value="classpath:mybatis-config.xml"/> <!--配置引用数据源(数据库连接池) --> <property name="dataSource" ref="c3p0DataSource"/> <!--配置加载那些mybatis框架中的映射文件 --> <property name="mapperLocations" value="classpath:mapper/*.xml"/> <!-- 在 Spring 配置文件中配置拦截器插件 --> <property name="typeAliasesPackage" value="com.isea533.mybatis.model"/> <property name="plugins"> <array> <bean class="com.github.pagehelper.PageInterceptor"> <!-- 这里的几个配置主要演示如何使用,如果不理解,一定要去掉下面的配置 --> <property name="properties"> <value> helperDialect=mysql reasonable=true supportMethodsArguments=true params=count=countSql autoRuntimeDialect=true </value> </property> </bean> </array> </property> </bean> <!--配置事务管理器类,该类在Spring-jdbc jar包中 --> <bean id="tx" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <!--关联数据源 --> <property name="dataSource" ref="c3p0DataSource"/> </bean> <!--配置开启基于注解的事务管理的注解解析器(@Transactional) --> <!--<tx:annotation-driven transaction-manager="tx"/>--> <!--配置dao曾家口的实现代理 --> <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"> <!--配置对那个包进行接口扫描 --> <property name="basePackage" value="com.neuedu.dao"/> <property name="sqlSessionFactoryBeanName" value="sqlSessionFactory"/> </bean> </beans> ``` # mybatis.xml的配置 ``` <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> <configuration> <settings> <setting name="mapUnderscoreToCamelCase" value="true"/> </settings> </configuration> ``` 来个大佬捞一手叭!
Hbase开启后hmaster闪退!Hregionserver可以开启无法关闭!
2015-04-27 10:22:22,023 INFO org.apache.zookeeper.ZooKeeper: Initiating client connection, conn ectString=slave1:2181,master:2181,slave2:2181 sessionTimeout=180000 watcher=master:600000x0 2015-04-27 10:22:22,848 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to serv er slave2/10.200.0.232:2181. Will not attempt to authenticate using SASL (无法定位登录配置) 2015-04-27 10:22:22,889 INFO org.apache.zookeeper.ClientCnxn: Socket connection established to slave2/10.200.0.232:2181, initiating session 2015-04-27 10:22:22,939 INFO org.apache.zookeeper.ClientCnxn: Session establishment complete on server slave2/10.200.0.232:2181, sessionid = 0x34cf8ad10320000, negotiated timeout = 40000 2015-04-27 10:22:23,198 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server Responder: starting 2015-04-27 10:22:23,223 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server listener on 60000: s tarting 2015-04-27 10:22:23,645 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 0 on 60000: starting 2015-04-27 10:22:23,646 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 1 on 60000: starting 2015-04-27 10:22:23,648 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 2 on 60000: starting 2015-04-27 10:22:23,649 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 3 on 60000: starting 2015-04-27 10:22:23,807 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 4 on 60000: starting 2015-04-27 10:22:23,850 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 5 on 60000: starting 2015-04-27 10:22:23,871 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 7 on 60000: starting 2015-04-27 10:22:23,874 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 8 on 60000: starting 2015-04-27 10:22:23,903 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 9 on 60000: starting 2015-04-27 10:22:23,920 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 6 on 60000: starting 2015-04-27 10:22:23,973 INFO org.apache.hadoop.ipc.HBaseServer: REPL IPC Server handler 1 on 60 000: starting 2015-04-27 10:22:24,016 INFO org.apache.hadoop.ipc.HBaseServer: REPL IPC Server handler 0 on 60 000: starting 2015-04-27 10:22:24,017 INFO org.apache.hadoop.ipc.HBaseServer: REPL IPC Server handler 2 on 60 000: starting 2015-04-27 10:22:24,142 INFO org.apache.hadoop.metrics.jvm.JvmMetrics: Initializing JVM Metrics with processName=Master, sessionId=master,60000,1430101339946 2015-04-27 10:22:24,284 INFO org.apache.hadoop.hbase.metrics: MetricsString added: revision 2015-04-27 10:22:24,284 INFO org.apache.hadoop.hbase.metrics: MetricsString added: hdfsUser 2015-04-27 10:22:24,284 INFO org.apache.hadoop.hbase.metrics: MetricsString added: hdfsDate 2015-04-27 10:22:24,284 INFO org.apache.hadoop.hbase.metrics: MetricsString added: hdfsUrl 2015-04-27 10:22:24,284 INFO org.apache.hadoop.hbase.metrics: MetricsString added: date 2015-04-27 10:22:24,284 INFO org.apache.hadoop.hbase.metrics: MetricsString added: hdfsRevision 2015-04-27 10:22:24,284 INFO org.apache.hadoop.hbase.metrics: MetricsString added: user 2015-04-27 10:22:24,284 INFO org.apache.hadoop.hbase.metrics: MetricsString added: hdfsVersion 2015-04-27 10:22:24,284 INFO org.apache.hadoop.hbase.metrics: MetricsString added: url 2015-04-27 10:22:24,284 INFO org.apache.hadoop.hbase.metrics: MetricsString added: version 2015-04-27 10:22:24,284 INFO org.apache.hadoop.hbase.metrics: new MBeanInfo 2015-04-27 10:22:24,288 INFO org.apache.hadoop.hbase.metrics: new MBeanInfo 2015-04-27 10:22:24,288 INFO org.apache.hadoop.hbase.master.metrics.MasterMetrics: Initialized 2015-04-27 10:22:24,827 INFO org.mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org. mortbay.log) via org.mortbay.log.Slf4jLog 2015-04-27 10:22:25,014 INFO org.apache.hadoop.http.HttpServer: Added global filtersafety (clas s=org.apache.hadoop.http.HttpServer$QuotingInputFilter) 2015-04-27 10:22:25,075 INFO org.apache.hadoop.http.HttpServer: Port returned by webServer.getC onnectors()[0].getLocalPort() before open() is -1. Opening the listener on 60010 2015-04-27 10:22:25,077 INFO org.apache.hadoop.http.HttpServer: listener.getLocalPort() returne d 60010 webServer.getConnectors()[0].getLocalPort() returned 60010 2015-04-27 10:22:25,077 INFO org.apache.hadoop.http.HttpServer: Jetty bound to port 60010 2015-04-27 10:22:25,077 INFO org.mortbay.log: jetty-6.1.26 2015-04-27 10:22:25,625 INFO org.mortbay.log: Started SelectChannelConnector@0.0.0.0:60010 2015-04-27 10:22:25,705 INFO org.apache.hadoop.hbase.master.ActiveMasterManager: Deleting ZNode for /hbase/backup-masters/master,60000,1430101339946 from backup master directory 2015-04-27 10:22:25,746 WARN org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper: Node /hbas e/backup-masters/master,60000,1430101339946 already deleted, and this is not a retry 2015-04-27 10:22:25,746 INFO org.apache.hadoop.hbase.master.ActiveMasterManager: Master=master, 60000,1430101339946 2015-04-27 10:22:26,154 FATAL org.apache.hadoop.hbase.master.HMaster: Unhandled exception. Star ting shutdown. org.apache.hadoop.ipc.RemoteException: Server IPC version 9 cannot communicate with client vers ion 4 at org.apache.hadoop.ipc.Client.call(Client.java:1070) at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225) at $Proxy10.getProtocolVersion(Unknown Source) at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:396) at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:379) at org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:119) at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:238) at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:203) at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:8 9) at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1386) at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:66) at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1404) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:254) at org.apache.hadoop.fs.Path.getFileSystem(Path.java:187) at org.apache.hadoop.hbase.util.FSUtils.getRootDir(FSUtils.java:674) at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:112) at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:573) at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:433) at java.lang.Thread.run(Thread.java:662) 2015-04-27 10:22:26,155 INFO org.apache.hadoop.hbase.master.HMaster: Aborting 2015-04-27 10:22:26,155 DEBUG org.apache.hadoop.hbase.master.HMaster: Stopping service threads 2015-04-27 10:22:26,155 INFO org.apache.hadoop.ipc.HBaseServer: Stopping server on 60000 2015-04-27 10:22:26,156 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 0 on 60000: exiting 2015-04-27 10:22:26,156 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 1 on 60000: exiting 2015-04-27 10:22:26,156 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 2 on 60000: exiting 2015-04-27 10:22:26,156 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 3 on 60000: exiting 2015-04-27 10:22:26,156 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 4 on 60000: exiting 2015-04-27 10:22:26,156 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 5 on 60000: exiting 2015-04-27 10:22:26,156 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 6 on 60000: exiting 2015-04-27 10:22:26,157 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 7 on 60000: exiting 2015-04-27 10:22:26,157 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 8 on 60000: exiting 2015-04-27 10:22:26,157 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 9 on 60000: exiting 2015-04-27 10:22:26,157 INFO org.apache.hadoop.ipc.HBaseServer: REPL IPC Server handler 0 on 60 000: exiting 2015-04-27 10:22:26,157 INFO org.apache.hadoop.ipc.HBaseServer: REPL IPC Server handler 1 on 60 000: exiting 2015-04-27 10:22:26,157 INFO org.apache.hadoop.ipc.HBaseServer: REPL IPC Server handler 2 on 60 000: exiting 2015-04-27 10:22:26,158 INFO org.apache.hadoop.ipc.HBaseServer: Stopping IPC Server listener on 60000 2015-04-27 10:22:26,160 INFO org.apache.hadoop.ipc.HBaseServer: Stopping IPC Server Responder 2015-04-27 10:22:26,160 INFO org.apache.hadoop.ipc.HBaseServer: Stopping IPC Server Responder 2015-04-27 10:22:26,161 INFO org.apache.hadoop.hbase.master.HMaster: Stopping infoServer 2015-04-27 10:22:26,170 INFO org.mortbay.log: Stopped SelectChannelConnector@0.0.0.0:60010 2015-04-27 10:22:26,224 INFO org.apache.zookeeper.ZooKeeper: Session: 0x34cf8ad10320000 closed 2015-04-27 10:22:26,224 INFO org.apache.hadoop.hbase.master.HMaster: HMaster main thread exitin g 2015-04-27 10:22:26,224 ERROR org.apache.hadoop.hbase.master.HMasterCommandLine: Failed to star t master java.lang.RuntimeException: HMaster Aborted at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.jav a:160) at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:104) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76) at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2129) 2015-04-27 10:22:26,224 INFO org.apache.zookeeper.ClientCnxn: EventThread shut down
mac tomcat启动后,打开主页为空白页,求各位帮助,下面是控制台信息。。。
Using CLASSPATH: /usr/local/apache-tomcat-8.5.9/bin/bootstrap.jar:/usr/local/apache-tomcat-8.5.9/bin/tomcat-juli.jar 18-Dec-2016 09:22:01.278 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.9 18-Dec-2016 09:22:01.283 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Dec 5 2016 20:18:12 UTC 18-Dec-2016 09:22:01.284 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.9.0 18-Dec-2016 09:22:01.284 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Mac OS X 18-Dec-2016 09:22:01.284 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.12.2 18-Dec-2016 09:22:01.284 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: x86_64 18-Dec-2016 09:22:01.284 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/jre 18-Dec-2016 09:22:01.284 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_112-b16 18-Dec-2016 09:22:01.285 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation 18-Dec-2016 09:22:01.285 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/local/apache-tomcat-8.5.9 18-Dec-2016 09:22:01.285 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/local/apache-tomcat-8.5.9 18-Dec-2016 09:22:01.286 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/apache-tomcat-8.5.9/conf/logging.properties 18-Dec-2016 09:22:01.286 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 18-Dec-2016 09:22:01.286 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 18-Dec-2016 09:22:01.287 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 18-Dec-2016 09:22:01.287 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/apache-tomcat-8.5.9 18-Dec-2016 09:22:01.287 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/apache-tomcat-8.5.9 18-Dec-2016 09:22:01.287 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/apache-tomcat-8.5.9/temp 18-Dec-2016 09:22:01.288 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /Users/user/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:. 18-Dec-2016 09:22:01.445 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"] 18-Dec-2016 09:22:01.480 严重 [main] org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated with ProtocolHandler ["http-nio-8080"] java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:433) at sun.nio.ch.Net.bind(Net.java:425) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
Tomcat的JVM参数配置问题不知道哪里错了,大神帮看看!window系统,
Tomcat版本8.5.12 Tomcat的JVM参数配置问题不知道哪里错了,大神帮看看. 我想对tomcat 启动参数优化,然后在catalina.bat中添加了java_OPTS参数, set JAVA_OPTS=%JAVA_OPTS% -server -Xms1024M -Xmx1024M -Xmn256M -XX:PermSize=256M -XX:MaxPermSize=256M -Xss256K 然后用查看pid 是可以看到了如下所示 ![图片说明](https://img-ask.csdn.net/upload/201709/05/1504600441_717405.png) 然后我启动tomcat,在启动 service.bat 我在tomcat8w.exe中的java option中添加配置项: -Xms1024M -Xmx1024M -Xmn256M -XX:PermSize=256M -XX:MaxPermSize=256M -Xss256K -XX:+DisableExplicitGC -XX:SurvivorRatio=1 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC 设置完我重新启动Tomcat, 然后打开JDK自带的JAVA性能分析工具,想查看一下我设置的jvm参数如下图所示 ![图片说明](https://img-ask.csdn.net/upload/201709/05/1504601102_986642.png) 我想要的参数 xmx xms等都没显示出来 求解?!
请教一个JVM内存优化的问题
<p>自己写的一个WEB爬虫程序,程序方面的优化我自己感觉做的不错了,各种对象的使用都想办法不让内存浪费。 <br />但还是吃内存吃的很厉害 <br />我想主要的消耗在于,对于每一个爬下来的网页,都要变成String在内存中分析超链接,这个估计很大。 <br />另外对于每一个分析到的URL,都需要保存起来。 <br /><br /><br />我当前使用的内存优化参数如下 <br />-Xms1024M -Xmx1024M -Xmn512M -Xss128K -XX:+UseParallelGC -XX:ParallelGCThreads=20 -XX:+UseParallelOldGC -XX:MaxPermSize=128M -XX:NewSize=128M -XX:MaxNewSize=128M -XX:SurvivorRatio=8 <br /><br />机器内存是1G。。上面那堆参数,除了最大最小堆内存我也是不求甚解,不是非常明白我设置了什么。网上搜答案也是五花八门,希望大家能推荐一个内存优化参数的文章 <br />另外我上面设置的参数有哪些方面可以优化,或者哪些地方写的不对。 <br /><br />核心的代码我都贴到下面:(我是刚入门的菜鸟,大家别笑话我写的差哦) <br /><br />这个是主类,负责控制,那个monitor大家就当做System.out.println,其实就是</p> <pre name="code" class="java">package com.wood.core; import java.util.concurrent.*; import java.util.*; import com.wood.core.monitor.*; public class CrawlerController implements Runnable { //一个类,用来管理URL,由各抓取线程共享 private URLMap urlmap; //已成功处理URL总数 private int count; //目标完成任务总数 private int total; //管理所有的抓取线程,必要时进行关闭,由于抓取线程存在I/O读取,而I/0读取中的线程是不可中断的,需调用线程的cancel函数 private Crawler[] crawlers; //线程工厂,可以监视产生的线程工作状态 private CrawlerFactory factory; //线程数目 private int threadMax; //当前活动线程 private int threadActive; //线程执行器 private ExecutorService exec; //当系统关闭时取消 private boolean canceled; public CrawlerController(String seed) { this(seed,20,10000); } public CrawlerController(List&lt;string&gt; seeds) { this(seeds,20,10000); } public CrawlerController(String seed,int threadNum) { this(seed,threadNum,10000); } public CrawlerController(List&lt;string&gt; seeds,int threadNum) { this(seeds,threadNum,10000); } public CrawlerController(String seed,int threadNum,int total) { //初始化URLMap,保存抓取启始位置 urlmap=new URLMap(seed); init(threadNum, total); } public CrawlerController(List&lt;string&gt; seeds,int threadNum,int total) { urlmap=new URLMap(seeds); init(threadNum, total); } //构造 private void init(int threadNum,int total) { //初始完成URL总数为0 count=0; //设置目标完成总数 this.total=total; threadMax=threadNum; threadActive=threadNum; //初始化工作线程 crawlers=new Crawler[threadMax]; String id="Crawler "; for(int i=0;i&lt;threadmax;i++) crawlers[i]="new" crawler(id+(i+1),this,urlmap);="" factory="new" crawlerfactory();="" exec="Executors.newCachedThreadPool(factory);" canceled="false;" }="" 检查当前工作线程状态,并打印系统状态="" private="" boolean="" check()="" {="" if(canceled)="" return="" false;="" int="" count="getCount();" if(count=""&gt;total) { MonitorHolder.getMonitor().print("已抓取"+COUNT+"页面,完成目标任务"+total+"页面\n"); cancel(); return false; } threadActive=factory.getActive(); /*if(threadActive&lt;=0) { MonitorHolder.getMonitor().print("无活动工作线程,抓取任务提前结束\n"); cancel(); return false; }*/ MonitorHolder.getMonitor().print_status("统计信息:成功抓取"+COUNT+"页面,当前活动线程为"+threadActive+"个\n"); return true; } //结束抓取 public void cancel() { //调用每个抓取线程的离开方法 for(Crawler cw:crawlers) cw.cancel(); //销毁工厂 factory.destory(); exec.shutdownNow(); MonitorHolder.getMonitor().print("成功结束抓取工作,共抓取"+getCount()+"页面\n"); this.canceled=true; } public synchronized void count() { count++; } public synchronized int getCount() { return count; } public int getTotal() { return total; } public URLMap getMap() { return urlmap; } @Override public void run() { while(!Thread.currentThread().isInterrupted() &amp;&amp; !canceled) { try { MonitorHolder.getMonitor().print("初始化完毕\n"); MonitorHolder.getMonitor().print("开始抓取工作\n"); for(Crawler cw:crawlers) exec.execute(cw); int check_count=0; while (check()){ TimeUnit.SECONDS.sleep(5); check_count++; if(check_count==24) { //每2分钟把待处理URL队列打乱一次 urlmap.shuffle(); MonitorHolder.getMonitor().print("控制信息!!!待抓取URL顺序将打乱\n"); check_count=0; System.gc(); } } } catch (InterruptedException e) { MonitorHolder.getMonitor().print("抓取工作被中断\n"); cancel(); } } } public static void main(String[] args) { List&lt;string&gt; seeds=new ArrayList&lt;string&gt;(15); //问问的各个分类 seeds.add("http://wenwen.soso.com/"); seeds.add("http://wenwen.soso.com/z/c1879048192.htm"); seeds.add("http://wenwen.soso.com/z/c1090519040.htm"); seeds.add("http://wenwen.soso.com/z/c1627389952.htm"); seeds.add("http://wenwen.soso.com/z/c855638016.htm"); seeds.add("http://wenwen.soso.com/z/c1191182336.htm"); seeds.add("http://wenwen.soso.com/z/c1191182336.htm"); seeds.add("http://wenwen.soso.com/z/c620756992.htm"); seeds.add("http://wenwen.soso.com/z/c553648128.htm"); seeds.add("http://wenwen.soso.com/z/c385875968.htm"); seeds.add("http://wenwen.soso.com/z/c687865856.htm"); seeds.add("http://wenwen.soso.com/z/c16777216.htm"); seeds.add("http://wenwen.soso.com/z/c318767104.htm"); seeds.add("http://wenwen.soso.com/z/c150994944.htm"); seeds.add("http://wenwen.soso.com/z/c922746880.htm"); seeds.add("http://wenwen.soso.com/z/c83886080.htm"); CrawlerController controller=new CrawlerController(seeds,5,2000000); List&lt;string&gt; format=new ArrayList&lt;string&gt;(10); //问问回答问题的格式 format.add("http://wenwen.soso.com/z/q"); controller.getMap().addLimit(format); Thread thread=new Thread(controller); thread.start(); } } </pre> <p><br /></p> <pre name="code" class="java">package com.wood.core; import java.util.*; import java.util.concurrent.TimeUnit; import java.util.regex.*; import java.io.*; import java.net.*; import com.wood.core.monitor.*; public class Crawler implements Runnable { //抓取线程ID private String id; //控制器 private CrawlerController controller; //URL,供各线程共享 private URLMap urlmap; private boolean canceled; //保存抓取的网页内容,用于分析超链接 private String content; //字符集 private String charset; //匹配超链接的正则表达式 private String link_reg="&lt;a\\s+(.*?)href\\s*=\\s*\"?(.*?)[\"(\\s*?)](.*?)&gt;"; private Pattern link_pattern=Pattern.compile(link_reg,Pattern.CASE_INSENSITIVE); //匹配字符集的正则表达式 private String charset_reg="&lt;meta\\s+http-equiv=\"content-type\"\\s+content=\"text html;="" charset="(.*?)\&amp;quot;(.*?)"&gt; "; private Pattern charset_pattern=Pattern.compile(charset_reg, Pattern.CASE_INSENSITIVE); private Pattern dir_path_pattern=Pattern.compile("^\\w+$", Pattern.CASE_INSENSITIVE); //保存当前抓取的URL的主机 private String host; //生成待建立的文件夹名 private String host_path; //抓取网页的根目录 private String root_path="E:\\web"; private File root_dir=new File(root_path); //输入来自URL,输出到文件 private InputStreamReader in=null; private OutputStreamWriter out=null; //输入输出缓冲区 private char[] buf=new char[10240]; //网页内容缓冲区 private StringBuilder contentbuilder=new StringBuilder(1024*1024); //通过一个URL,下载网页内容 private void download(URL url) { in=null; out=null; //建立抓取文件 String urlfile=url.getFile(); if(urlfile.endsWith("/")) urlfile+="indexindex"; File file=new File(host_path,urlfile); File file_dir=new File(file.getParent()); if(!file_dir.exists()) file_dir.mkdirs(); MonitorHolder.getMonitor().print(id+"开始准备下载"+url.toString()+"\n"); try { //打开链接 URLConnection conn=url.openConnection(); //超时30秒 conn.setConnectTimeout(30000); conn.setDoOutput(true); //不是HTML不下载 /*String type=conn.getContentType(); if( (type==null)|| (!type.equals("text/html")) ) return;*/ //将网页内容的缓冲区清空 contentbuilder.setLength(0); in=new InputStreamReader(conn.getInputStream(),charset); out=new OutputStreamWriter(new FileOutputStream(file),charset); int len; //读取网页内容,并写入文件,保存到网页内容缓冲里面 while((len=in.read(buf, 0, 10240)) &gt;0) { out.write(buf, 0, len); //append可以减小系统损耗 contentbuilder.append(buf, 0, len); } out.flush(); //将网页内容缓冲区的内容读到content中,用于分析 content=null; content=contentbuilder.toString(); } catch (IOException e) { MonitorHolder.getMonitor().print("错误!!!"+id+"下载页面"+url.toString()+"错误\n"); } finally{ try { if(in!=null) in.close(); if(out!=null) out.close(); } catch (IOException e) { } in=null; out=null; } } public Crawler(String id,CrawlerController controller,URLMap urlmap) { this.id=id; this.controller=controller; this.urlmap=urlmap; this.charset="utf-8"; canceled=false; MonitorHolder.getMonitor().print(id+"就绪\n"); } //设置字符集,通过正则表达式获取字符集格式 //为了性能,该功能并未使用 private void setCharset() { Matcher matcher=charset_pattern.matcher(content); String CHARSET="GB2312"; if(matcher.find()) CHARSET=matcher.group(1).trim(); this.charset=CHARSET; try { content=new String(content.getBytes("GB2312"),CHARSET); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } } //从网页内容中分析超链接 private List&lt;string&gt; retrieveLinks(URL url) { List&lt;string&gt; urls=new LinkedList&lt;string&gt;(); if(content==null) return urls; Matcher matcher=link_pattern.matcher(content); String link; String host_reg="http://"+host; String host_nowww; if(host.contains("www")) host_nowww=host.substring(host.lastIndexOf("w")+2); else { host_nowww=host; } while(matcher.find()) { //通过抓取第1组的内容 link=matcher.group(2).trim().toLowerCase(); if (link.length() &lt; 1) { continue; } //网页内部链接,忽略 if (link.charAt(0) == '#') { continue; } //发送邮件链接,忽略 if (link.indexOf("mailto:") != -1) { continue; } if (link.toLowerCase().indexOf("javascript") != -1) { continue; } //分析绝对地址或相对地址 if (link.indexOf("://") == -1){ if (link.charAt(0) == '/') //处理绝对地址 link = "http://" + host+ link; else if(link.startsWith("./")) link="http://" + host+ link.substring(1); else { String file = url.getFile(); String file_path=file.substring(0, file.lastIndexOf('/')); while(link.startsWith("../")) { link=link.substring(link.indexOf("/")+1); file_path=file_path.substring(0, file_path.lastIndexOf("/")); } link="http://"+host+file_path+"/"+link; } } int index = link.indexOf('#'); if (index != -1) { link = link.substring(0, index); } if(!urlmap.testHost(link)) continue; if(!urlmap.testLimit(link)) continue; urls.add(link); } return urls; } //设置主机并建立目录 private void setHost(String host) { this.host=host; this.host_path=root_path+"\\"+host; File host_dir=new File(host_path); if(!host_dir.exists()) host_dir.mkdirs(); } @Override public void run() { if(!root_dir.exists()) root_dir.mkdirs(); while(!Thread.currentThread().isInterrupted() &amp;&amp; !canceled &amp;&amp; (controller.getCount()&lt;controller.gettotal()) )="" {="" try="" {="" 获得一个待抓取的url,如果没有可用url,则进入阻塞状态,该方法调用是线程安全的="" string="" urlstring="urlmap.getURL();" monitorholder.getmonitor().print(id+"开始抓取"+urlstring+"\n");="" 建立url="" url="" url="new" url(urlstring);="" 设置主机="" sethost(url.gethost());="" 清空网页内容,并下贼="" content="null;" download(url);="" 未下载到内容="" if(content="=null)" {="" continue;="" }="" monitorholder.getmonitor().print(id+"抓取"+urlstring+"完毕,进行解析\n");="" setcharset();="" 分析超链接="" list&lt;string=""&gt; urls=retrieveLinks(url); //将分析到的超连接加入到待抓取的URL队列中,并将成功抓取数+1 urlmap.addAll(urls); controller.count(); MonitorHolder.getMonitor().print(id+"解析"+urlstring+"完毕,共计"+urls.size()+"个超链接,开始新任务\n"); content=null; TimeUnit.SECONDS.sleep(1); } catch (InterruptedException e) { MonitorHolder.getMonitor().print(id+"被中断\n"); canceled=true; } catch (MalformedURLException e) { MonitorHolder.getMonitor().print(id+"报告:URL格式错误\n"); }catch (Exception e) { e.printStackTrace(); } } } //退出,由控制器调用,关闭所有底层I/O资源 public void cancel() { try { if(in!=null) in.close(); } catch (IOException e) { } try { if(out!=null) out.close(); } catch (IOException e) { e.printStackTrace(); } MonitorHolder.getMonitor().print(id+"停止工作\n"); canceled=true; } } </pre> <p> </p> <pre name="code" class="java">package com.wood.core; import java.net.MalformedURLException; import java.net.URL; import java.util.concurrent.*; import java.util.*; public class URLMap { //待抓取的URL队列 private LinkedList&lt;string&gt; URLQueue; //缓存解析出来的URL,使用Hash方便快速查找,&lt;k,false&gt;表示未抓取,&lt;k,true&gt;表示抓取结束 private HashMap&lt;string,boolean&gt; cachedURL; private HashSet&lt;string&gt; hosts; private HashSet&lt;string&gt; format_limit; //默认构造器,初始化队列,集合 private URLMap() { URLQueue=new LinkedList&lt;string&gt;(); cachedURL=new HashMap&lt;string,boolean&gt;(50000); hosts=new HashSet&lt;string&gt;(20); format_limit=new HashSet&lt;string&gt;(20); } public URLMap(List&lt;string&gt; seeds) { this(); for(String s:seeds) cachedURL.put(s, false); URLQueue.addAll(seeds); for (String string : seeds) { try { URL test=new URL(string); String host=test.getHost(); hosts.add(host); } catch (MalformedURLException e) { e.printStackTrace(); } } } public URLMap(String seed) { this(); cachedURL.put(seed, false); URLQueue.add(seed); try { URL test=new URL(seed); hosts.add(test.getHost()); } catch (MalformedURLException e) { e.printStackTrace(); } } //将解析出来的URL添加到URLMap中,如果有重复则忽略,URL有效性由外部保证,该方法是线程安全的 public synchronized void addURL(String url) throws InterruptedException { //如果该URL已存在,忽略该URL if(cachedURL.keySet().contains(url)) return; cachedURL.put(url, false); URLQueue.add(url); //有可用URL,唤醒所有阻塞线程 notifyAll(); } //将解析出来的URL添加到URLMap中,如果有重复则忽略,URL有效性由外部保证,该方法是同步的 public synchronized void addAll(List&lt;string&gt; urls) throws InterruptedException { for (String url : urls) { if(cachedURL.keySet().contains(url)) continue; cachedURL.put(url,false); URLQueue.add(url); } notifyAll(); } //从当前URL队列中获取一个URL,如果当前队列无可用URL,则该线程进入阻塞状态 public synchronized String getURL() throws InterruptedException { //该处进入阻塞 while(URLQueue.size()==0) wait(); //将其从队列中删除 String url=URLQueue.remove(); cachedURL.put(url, true); return url; } public boolean testHost(String host) { for(String host_allow:hosts) { if(host.contains(host_allow)) return true; } return false; } public void addHost(List&lt;string&gt; l) { hosts.addAll(l); } public void addLimit(List&lt;string&gt; l) { format_limit.addAll(l); } public boolean testLimit(String url) { if(format_limit.size()==0) return true; else { for(String s:format_limit) if(url.contains(s)) return true; } return false; } //将待抓取队列打乱 private int swap_check=0; public synchronized void shuffle() { swap_check++; int size=URLQueue.size(); if(size&lt;1000) { java.util.Collections.shuffle(URLQueue); swap_check=0; } else { if(size&gt;=1000 &amp;&amp; size&lt;5000) { if(swap_check==5) { java.util.Collections.shuffle(URLQueue); swap_check=0; } } else { if(swap_check==15) { java.util.Collections.shuffle(URLQueue); swap_check=0; } } } } } </pre> <p><br /><br />附件里是内存使用情况<br /><strong>问题补充</strong><br />主要占用内存的是char[] <br />我的策略是所有分析到的有效URL都存储在HashMap中 <br />但是几万个URL不至于占用大多数内存吧? <br />我的工作线程只有5个,设置的多了,一会就崩了 <br /><br />哪位高人路过,帮我看眼吧 <br />祝你新年好运~</p> <p> </p> <p>附件里是内存占用,缓存的URL总数是20000个,一个大概占用80B,程序内存总数是150MB</p> <p>我不知道到底是什么东西不停的吃内存,回收不掉,程序运行的时间越长,线程数越多,内存吃的越快</p>
mac idea进去没多久就闪退
进idea没怎样就闪退,然后弹出这个 Process: idea [829] Path: /Applications/IntelliJ IDEA.app/Contents/MacOS/idea Identifier: com.jetbrains.intellij Version: 2019.1.3 (IU-191.7479.19) Code Type: X86-64 (Native) Parent Process: ??? [762] Responsible: idea [829] User ID: 501 Date/Time: 2019-07-02 09:37:20.989 +0800 OS Version: Mac OS X 10.14.3 (18D109) Report Version: 12 Bridge OS Version: 3.3 (16P3133) Anonymous UUID: D6A9AD59-F31C-E5FC-F80F-6AF70E8FF5B4 Time Awake Since Boot: 290 seconds System Integrity Protection: enabled Crashed Thread: 34 Java: AWT-EventQueue-0 2019.1.3#IU-191.7479.19 IDEA, eap:false, Exception Type: EXC_BAD_ACCESS (SIGABRT) Exception Codes: KERN_PROTECTION_FAILURE at 0x00000001023fa100 Exception Note: EXC_CORPSE_NOTIFY VM Regions Near 0x1023fa100: __LINKEDIT 00000001023f7000-00000001023fa000 [ 12K] r--/rwx SM=COW /Applications/IntelliJ IDEA.app/Contents/jdk/Contents/Home/jre/lib/jli/libjli.dylib --> VM_ALLOCATE 00000001023fa000-00000001023fb000 [ 4K] r--/rwx SM=COW VM_ALLOCATE 00000001023fb000-00000001023fc000 [ 4K] r--/r-- SM=PRV Application Specific Information: abort() called Thread 0:: AppKit Thread Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff7702a17a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff7702a6d0 mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff49ca3fde __CFRunLoopServiceMachPort + 337 3 com.apple.CoreFoundation 0x00007fff49ca352d __CFRunLoopRun + 1654 4 com.apple.CoreFoundation 0x00007fff49ca2c64 CFRunLoopRunSpecific + 463 5 com.apple.Foundation 0x00007fff4c0094aa -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 280 6 libawt_lwawt.dylib 0x000000010a86de27 Java_sun_lwawt_macosx_LWCToolkit_doAWTRunLoopImpl + 256 7 ??? 0x000000010b7ac3a7 0 + 4487562151 8 ??? 0x000000010b79bffd 0 + 4487495677 9 ??? 0x000000010b79bffd 0 + 4487495677 10 ??? 0x000000010b79bffd 0 + 4487495677 11 ??? 0x000000010b79bffd 0 + 4487495677 12 ??? 0x000000010b7944e7 0 + 4487464167 13 libjvm.dylib 0x00000001048c5b1a JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710 14 libjvm.dylib 0x00000001048e052a jni_invoke_nonstatic(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*) + 748 15 libjvm.dylib 0x00000001048d0758 jni_CallObjectMethodV + 248 16 JavaNativeFoundation 0x00007fff4de68758 JNFCallObjectMethod + 175 17 libawt_lwawt.dylib 0x000000010a83bfaf -[AWTView selectedRange] + 102 18 com.apple.AppKit 0x00007fff47597ca5 -[NSTextInputContext(NSInputContext_WithCompletion) selectedRangeWithCompletionHandler:] + 95 19 com.apple.AppKit 0x00007fff4751d7f3 -[NSTextInputContext handleTSMEvent:completionHandler:] + 1528 20 com.apple.AppKit 0x00007fff4751d185 _NSTSMEventHandler + 306 21 com.apple.HIToolbox 0x00007fff48f37af9 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1502 22 com.apple.HIToolbox 0x00007fff48f36e36 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 371 23 com.apple.HIToolbox 0x00007fff48f36cbc SendEventToEventTargetWithOptions + 45 24 com.apple.HIToolbox 0x00007fff48f9f730 SendTSMEvent_WithCompletionHandler + 383 25 com.apple.HIToolbox 0x00007fff49142433 __SendTextInputEvent_WithCompletionHandler_block_invoke + 489 26 com.apple.HIToolbox 0x00007fff4914081c SendTextInputEvent_WithCompletionHandler + 1130 27 com.apple.HIToolbox 0x00007fff491a651f -[IMKInputSession _postEvent:completionHandler:] + 170 28 com.apple.HIToolbox 0x00007fff491bb49a -[IMKInputSession selectedRange_withCompletionHandler:] + 288 29 com.apple.HIToolbox 0x00007fff491a6e3f __49-[IMKInputSession imkxpc_selectedRangeWithReply:]_block_invoke + 470 30 com.apple.CoreFoundation 0x00007fff49ce0c37 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12 31 com.apple.CoreFoundation 0x00007fff49ca3c6d __CFRunLoopDoBlocks + 395 32 com.apple.CoreFoundation 0x00007fff49ca39c9 __CFRunLoopRun + 2834 33 com.apple.CoreFoundation 0x00007fff49ca2c64 CFRunLoopRunSpecific + 463 34 com.apple.HIToolbox 0x00007fff48f85883 -[IMKInputSessionXPCInvocation invocationAwaitXPCReply] + 551 35 com.apple.HIToolbox 0x00007fff49187e8f -[IMKClient menuWithCompletionHandler:] + 2658 36 com.apple.HIToolbox 0x00007fff491519f7 IMKInputSessionGetMenuIntoMenuWithCompletionHandler + 132 37 com.apple.HIToolbox 0x00007fff491510e9 GetInputMethodInstanceMenu_IntoMenu_WithCompletionHandler + 122 38 com.apple.HIToolbox 0x00007fff49144eb6 utTryToSetupInputMethodMenu + 292 39 com.apple.HIToolbox 0x00007fff49144d04 __utSetupInputMethodMenuFromDeferredBlock_block_invoke + 196 40 com.apple.CoreFoundation 0x00007fff49ce0c37 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12 41 com.apple.CoreFoundation 0x00007fff49ca3c6d __CFRunLoopDoBlocks + 395 42 com.apple.CoreFoundation 0x00007fff49ca336b __CFRunLoopRun + 1204 43 com.apple.CoreFoundation 0x00007fff49ca2c64 CFRunLoopRunSpecific + 463 44 com.apple.HIToolbox 0x00007fff48f39ab5 RunCurrentEventLoopInMode + 293 45 com.apple.HIToolbox 0x00007fff48f396f4 ReceiveNextEventCommon + 371 46 com.apple.HIToolbox 0x00007fff48f39568 _BlockUntilNextEventMatchingListInModeWithFilter + 64 47 com.apple.AppKit 0x00007fff471f4363 _DPSNextEvent + 997 48 com.apple.AppKit 0x00007fff471f3102 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1362 49 libosxapp.dylib 0x000000010a8f82dc -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 124 50 com.apple.AppKit 0x00007fff471ed165 -[NSApplication run] + 699 51 libosxapp.dylib 0x000000010a8f7f26 +[NSApplicationAWT runAWTLoopWithApp:] + 156 52 libawt_lwawt.dylib 0x000000010a87ee5b -[AWTStarter starter:] + 905 53 com.apple.Foundation 0x00007fff4c09ebab __NSThreadPerformPerform + 327 54 com.apple.CoreFoundation 0x00007fff49cc0395 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 55 com.apple.CoreFoundation 0x00007fff49cc033b __CFRunLoopDoSource0 + 108 56 com.apple.CoreFoundation 0x00007fff49ca3dd1 __CFRunLoopDoSources0 + 195 57 com.apple.CoreFoundation 0x00007fff49ca337a __CFRunLoopRun + 1219 58 com.apple.CoreFoundation 0x00007fff49ca2c64 CFRunLoopRunSpecific + 463 59 com.jetbrains.intellij 0x000000010237ee0d main + 336 60 libdyld.dylib 0x00007fff76ef0ed9 start + 1 Thread 35:: Java: TimerQueue 0 libsystem_kernel.dylib 0x00007fff7702d7de __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff770e7593 _pthread_cond_wait + 724 2 libjvm.dylib 0x0000000104a409e9 Parker::park(bool, long) + 527 3 libjvm.dylib 0x0000000104b3865f Unsafe_Park + 126 4 ??? 0x000000010c12992a 0 + 4497512746 5 ??? 0x000000010c29890c 0 + 4499015948 6 ??? 0x000000010b79c042 0 + 4487495746 7 ??? 0x000000010b7944e7 0 + 4487464167 8 libjvm.dylib 0x00000001048c5b1a JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710 9 libjvm.dylib 0x00000001048c62be JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*) + 356 10 libjvm.dylib 0x00000001048c646a JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*) + 74 11 libjvm.dylib 0x00000001049040aa thread_entry(JavaThread*, Thread*) + 124 12 libjvm.dylib 0x0000000104b22335 JavaThread::thread_main_inner() + 155 13 libjvm.dylib 0x0000000104b239fa JavaThread::run() + 448 14 libjvm.dylib 0x0000000104a43ff2 java_start(Thread*) + 246 15 libsystem_pthread.dylib 0x00007fff770e4305 _pthread_body + 126 16 libsystem_pthread.dylib 0x00007fff770e726f _pthread_start + 70 17 libsystem_pthread.dylib 0x00007fff770e3415 thread_start + 13 Thread 36:: Java: AWT-SelectorPerformer pool-1-thread-1 0 libsystem_kernel.dylib 0x00007fff7702d7de __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff770e7593 _pthread_cond_wait + 724 2 libjvm.dylib 0x0000000104a409d8 Parker::park(bool, long) + 510 3 libjvm.dylib 0x0000000104b3865f Unsafe_Park + 126 4 ??? 0x000000010c12992a 0 + 4497512746 5 ??? 0x000000010c8ddabc 0 + 4505590460 6 ??? 0x000000010cd06374 0 + 4509950836 7 ??? 0x000000010b79bffd 0 + 4487495677 8 ??? 0x000000010b79c042 0 + 4487495746 9 ??? 0x000000010b79bd80 0 + 4487495040 10 ??? 0x000000010b7944e7 0 + 4487464167 11 libjvm.dylib 0x00000001048c5b1a JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710 12 libjvm.dylib 0x00000001049097fa JVM_DoPrivileged + 1208 13 ??? 0x000000010b7ac3a7 0 + 4487562151 14 ??? 0x000000010b79bd80 0 + 4487495040 15 ??? 0x000000010b79c042 0 + 4487495746 16 ??? 0x000000010b7944e7 0 + 4487464167 17 libjvm.dylib 0x00000001048c5b1a JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710 18 libjvm.dylib 0x00000001048c62be JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*) + 356 19 libjvm.dylib 0x00000001048c646a JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*) + 74 20 libjvm.dylib 0x00000001049040aa thread_entry(JavaThread*, Thread*) + 124 21 libjvm.dylib 0x0000000104b22335 JavaThread::thread_main_inner() + 155 22 libjvm.dylib 0x0000000104b239fa JavaThread::run() + 448 23 libjvm.dylib 0x0000000104a43ff2 java_start(Thread*) + 246 24 libsystem_pthread.dylib 0x00007fff770e4305 _pthread_body + 126 25 libsystem_pthread.dylib 0x00007fff770e726f _pthread_start + 70 26 libsystem_pthread.dylib 0x00007fff770e3415 thread_start + 13 Thread 37:: Java: fsnotifier 0 libsystem_kernel.dylib 0x00007fff7702d7de __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff770e7593 _pthread_cond_wait + 724 2 libjvm.dylib 0x0000000104a3fd12 os::PlatformEvent::park() + 192 3 libjvm.dylib 0x0000000104a380f5 ObjectMonitor::wait(long, bool, Thread*) + 763 4 libjvm.dylib 0x0000000104aeff88 ObjectSynchronizer::wait(Handle, long, Thread*) + 202 5 libjvm.dylib 0x000000010490abbb JVM_MonitorWait + 156 6 ??? 0x000000010ba02468 0 + 4490011752 7 ??? 0x000000010b79bffd 0 + 4487495677 8 ??? 0x000000010b79bffd 0 + 4487495677 9 ??? 0x000000010b79ba40 0 + 4487494208 10 ??? 0x000000010b79bffd 0 + 4487495677 11 ??? 0x000000010b79c042 0 + 4487495746 12 ??? 0x000000010b79bffd 0 + 4487495677 13 ??? 0x000000010b79bffd 0 + 4487495677 14 ??? 0x000000010b79c042 0 + 4487495746 15 ??? 0x000000010b79be54 0 + 4487495252 16 ??? 0x000000010b79c042 0 + 4487495746 17 ??? 0x000000010b79bffd 0 + 4487495677 18 ??? 0x000000010b79c042 0 + 4487495746 19 ??? 0x000000010b7944e7 0 + 4487464167 20 libjvm.dylib 0x00000001048c5b1a JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710 21 libjvm.dylib 0x00000001048c62be JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*) + 356 22 libjvm.dylib 0x00000001048c646a JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*) + 74 23 libjvm.dylib 0x00000001049040aa thread_entry(JavaThread*, Thread*) + 124 24 libjvm.dylib 0x0000000104b22335 JavaThread::thread_main_inner() + 155 25 libjvm.dylib 0x0000000104b239fa JavaThread::run() + 448 26 libjvm.dylib 0x0000000104a43ff2 java_start(Thread*) + 246 27 libsystem_pthread.dylib 0x00007fff770e4305 _pthread_body + 126 28 libsystem_pthread.dylib 0x00007fff770e726f _pthread_start + 70 29 libsystem_pthread.dylib 0x00007fff770e3415 thread_start + 13 Thread 38:: Java: BaseDataReader: output stream of fsnotifier 0 libsystem_kernel.dylib 0x00007fff7702be5e read + 10 1 libjava.dylib 0x0000000105101621 handleRead + 34 2 libjava.dylib 0x00000001051012cb readBytes + 395 3 ??? 0x000000010bf19e42 0 + 4495351362 4 ??? 0x000000010befba64 0 + 4495227492 Thread 39:: Java: BaseDataReader: error stream of fsnotifier 0 libsystem_kernel.dylib 0x00007fff7702be5e read + 10 1 libjava.dylib 0x0000000105101621 handleRead + 34 2 libjava.dylib 0x00000001051012cb readBytes + 395 3 ??? 0x000000010b7ac3a7 0 + 4487562151 4 ??? 0x000000010b79ba40 0 + 4487494208 5 ??? 0x000000010c13eaa4 0 + 4497599140 6 ??? 0x000000010b79b7d0 0 + 4487493584 7 ??? 0x000000010b79b7d0 0 + 4487493584 8 ??? 0x000000010b79bffd 0 + 4487495677 9 ??? 0x000000010b79c042 0 + 4487495746 10 ??? 0x000000010b79bffd 0 + 4487495677 11 ??? 0x000000010b79bffd 0 + 4487495677 12 ??? 0x000000010b79c042 0 + 4487495746 13 ??? 0x000000010b79be54 0 + 4487495252 14 ??? 0x000000010b79c042 0 + 4487495746 15 ??? 0x000000010b79bffd 0 + 4487495677 16 ??? 0x000000010b79c042 0 + 4487495746 17 ??? 0x000000010b7944e7 0 + 4487464167 18 libjvm.dylib 0x00000001048c5b1a JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710 19 libjvm.dylib 0x00000001048c62be JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*) + 356 20 libjvm.dylib 0x00000001048c646a JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*) + 74 21 libjvm.dylib 0x00000001049040aa thread_entry(JavaThread*, Thread*) + 124 22 libjvm.dylib 0x0000000104b22335 JavaThread::thread_main_inner() + 155 23 libjvm.dylib 0x0000000104b239fa JavaThread::run() + 448 24 libjvm.dylib 0x0000000104a43ff2 java_start(Thread*) + 246 25 libsystem_pthread.dylib 0x00007fff770e4305 _pthread_body + 126 26 libsystem_pthread.dylib 0x00007fff770e726f _pthread_start + 70 27 libsystem_pthread.dylib 0x00007fff770e3415 thread_start + 13 Thread 40:: Java: FeatureUsageFileEventLogger 0 libsystem_kernel.dylib 0x00007fff7702d7de __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff770e7593 _pthread_cond_wait + 724 2 libjvm.dylib 0x0000000104a409d8 Parker::park(bool, long) + 510 3 libjvm.dylib 0x0000000104b3865f Unsafe_Park + 126 4 ??? 0x000000010c12992a 0 + 4497512746 5 ??? 0x000000010c28760c 0 + 4498945548 6 ??? 0x000000010cd06374 0 + 4509950836 7 ??? 0x000000010b79bffd 0 + 4487495677 8 ??? 0x000000010b79c042 0 + 4487495746 9 ??? 0x000000010b7944e7 0 + 4487464167 10 libjvm.dylib 0x00000001048c5b1a JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710 11 libjvm.dylib 0x00000001048c62be JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*) + 356 12 libjvm.dylib 0x00000001048c646a JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*) + 74 13 libjvm.dylib 0x00000001049040aa thread_entry(JavaThread*, Thread*) + 124 14 libjvm.dylib 0x0000000104b22335 JavaThread::thread_main_inner() + 155 15 libjvm.dylib 0x0000000104b239fa JavaThread::run() + 448 16 libjvm.dylib 0x0000000104a43ff2 java_start(Thread*) + 246 17 libsystem_pthread.dylib 0x00007fff770e4305 _pthread_body + 126 18 libsystem_pthread.dylib 0x00007fff770e726f _pthread_start + 70 19 libsystem_pthread.dylib 0x00007fff770e3415 thread_start + 13 Thread 41:: Java: Netty Builtin Server 2 0 libsystem_kernel.dylib 0x00007fff77030716 kevent + 10 1 libnio.dylib 0x000000010a4679e8 Java_sun_nio_ch_KQueueArrayWrapper_kevent0 + 98 2 ??? 0x000000010b7ac3a7 0 + 4487562151 3 ??? 0x000000010b79ba40 0 + 4487494208 4 ??? 0x000000010b79ba40 0 + 4487494208 5 ??? 0x000000010b79ba40 0 + 4487494208 6 ??? 0x000000010b79ba40 0 + 4487494208 7 ??? 0x000000010b79ba40 0 + 4487494208 8 ??? 0x000000010b79ba40 0 + 4487494208 9 ??? 0x000000010b79bffd 0 + 4487495677 10 ??? 0x000000010b79bffd 0 + 4487495677 11 ??? 0x000000010b79c042 0 + 4487495746 12 ??? 0x000000010b7944e7 0 + 4487464167 13 libjvm.dylib 0x00000001048c5b1a JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710 14 libjvm.dylib 0x00000001048c62be JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*) + 356 15 libjvm.dylib 0x00000001048c646a JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*) + 74 16 libjvm.dylib 0x00000001049040aa thread_entry(JavaThread*, Thread*) + 124 17 libjvm.dylib 0x0000000104b22335 JavaThread::thread_main_inner() + 155 18 libjvm.dylib 0x0000000104b239fa JavaThread::run() + 448 19 libjvm.dylib 0x0000000104a43ff2 java_start(Thread*) + 246 20 libsystem_pthread.dylib 0x00007fff770e4305 _pthread_body + 126 21 libsystem_pthread.dylib 0x00007fff770e726f _pthread_start + 70 22 libsystem_pthread.dylib 0x00007fff770e3415 thread_start + 13 Thread 42:: Java: process reaper 0 libsystem_kernel.dylib 0x00007fff7702f2d2 __wait4 + 10 1 libjava.dylib 0x00000001050fe0db Java_java_lang_UNIXProcess_waitForProcessExit + 29 2 ??? 0x000000010b7ac3a7 0 + 4487562151 3 ??? 0x000000010b79ba40 0 + 4487494208 4 ??? 0x000000010b79bffd 0 + 4487495677 5 ??? 0x000000010b79c042 0 + 4487495746 6 ??? 0x000000010b79bffd 0 + 4487495677 7 ??? 0x000000010b79c042 0 + 4487495746 8 ??? 0x000000010b7944e7 0 + 4487464167 9 libjvm.dylib 0x00000001048c5b1a JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710 10 libjvm.dylib 0x00000001048c62be JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*) + 356 11 libjvm.dylib 0x00000001048c646a JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*) + 74 12 libjvm.dylib 0x00000001049040aa thread_entry(JavaThread*, Thread*) + 124 13 libjvm.dylib 0x0000000104b22335 JavaThread::thread_main_inner() + 155 14 libjvm.dylib 0x0000000104b239fa JavaThread::run() + 448 15 libjvm.dylib 0x0000000104a43ff2 java_start(Thread*) + 246 16 libsystem_pthread.dylib 0x00007fff770e4305 _pthread_body + 126 17 libsystem_pthread.dylib 0x00007fff770e726f _pthread_start + 70 18 libsystem_pthread.dylib 0x00007fff770e3415 thread_start + 13 Thread 43:: Java: java 0 libsystem_kernel.dylib 0x00007fff7702d7de __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff770e7593 _pthread_cond_wait + 724 2 libjvm.dylib 0x0000000104a3fd12 os::PlatformEvent::park() + 192 3 libjvm.dylib 0x0000000104a380f5 ObjectMonitor::wait(long, bool, Thread*) + 763 4 libjvm.dylib 0x0000000104aeff88 ObjectSynchronizer::wait(Handle, long, Thread*) + 202 5 libjvm.dylib 0x000000010490abbb JVM_MonitorWait + 156 6 ??? 0x000000010ba02468 0 + 4490011752 7 ??? 0x000000010b79bffd 0 + 4487495677 8 ??? 0x000000010b79bffd 0 + 4487495677 9 ??? 0x000000010b79ba40 0 + 4487494208 10 ??? 0x000000010b79bffd 0 + 4487495677 11 ??? 0x000000010b79c042 0 + 4487495746 12 ??? 0x000000010b79bffd 0 + 4487495677 13 ??? 0x000000010b79bffd 0 + 4487495677 14 ??? 0x000000010b79c042 0 + 4487495746 15 ??? 0x000000010cb0c3d4 0 + 4507878356 16 ??? 0x000000010b79bffd 0 + 4487495677 17 ??? 0x000000010b79c042 0 + 4487495746 18 ??? 0x000000010b7944e7 0 + 4487464167 19 libjvm.dylib 0x00000001048c5b1a JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710 20 libjvm.dylib 0x00000001048c62be JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*) + 356 21 libjvm.dylib 0x00000001048c646a JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*) + 74 22 libjvm.dylib 0x00000001049040aa thread_entry(JavaThread*, Thread*) + 124 23 libjvm.dylib 0x0000000104b22335 JavaThread::thread_main_inner() + 155 24 libjvm.dylib 0x0000000104b239fa JavaThread::run() + 448 25 libjvm.dylib 0x0000000104a43ff2 java_start(Thread*) + 246 26 libsystem_pthread.dylib 0x00007fff770e4305 _pthread_body + 126 27 libsystem_pthread.dylib 0x00007fff770e726f _pthread_start + 70 28 libsystem_pthread.dylib 0x00007fff770e3415 thread_start + 13 Thread 44:: Java: BaseDataReader: output stream of java 0 libsystem_kernel.dylib 0x00007fff7702be5e read + 10 1 libjava.dylib 0x0000000105101621 handleRead + 34 2 libjava.dylib 0x00000001051012cb readBytes + 395 3 ??? 0x000000010bf19e42 0 + 4495351362 4 ??? 0x000000010befba64 0 + 4495227492 Thread 45:: Java: BaseDataReader: error stream of java 0 libsystem_kernel.dylib 0x00007fff7702be5e read + 10 1 libjava.dylib 0x0000000105101621 handleRead + 34 2 libjava.dylib 0x00000001051012cb readBytes + 395 3 ??? 0x000000010bf19e42 0 + 4495351362 4 ??? 0x000000010befba64 0 + 4495227492 Thread 46:: Java: ApplicationImpl pooled thread 4 0 libsystem_kernel.dylib 0x00007fff7702d7de __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff770e7593 _pthread_cond_wait + 724 2 libjvm.dylib 0x0000000104a409e9 Parker::park(bool, long) + 527 3 libjvm.dylib 0x0000000104b3865f Unsafe_Park + 126 4 ??? 0x000000010c12992a 0 + 4497512746 5 ??? 0x000000010c8ddbc4 0 + 4505590724 6 ??? 0x000000010b79bffd 0 + 4487495677 7 ??? 0x000000010b79c042 0 + 4487495746 8 ??? 0x000000010b7944e7 0 + 4487464167 9 libjvm.dylib 0x00000001048c5b1a JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710 10 libjvm.dylib 0x00000001048c62be JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*) + 356 11 libjvm.dylib 0x00000001048c646a JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*) + 74 12 libjvm.dylib 0x00000001049040aa thread_entry(JavaThread*, Thread*) + 124 13 libjvm.dylib 0x0000000104b22335 JavaThread::thread_main_inner() + 155 14 libjvm.dylib 0x0000000104b239fa JavaThread::run() + 448 15 libjvm.dylib 0x0000000104a43ff2 java_start(Thread*) + 246 16 libsystem_pthread.dylib 0x00007fff770e4305 _pthread_body + 126 17 libsystem_pthread.dylib 0x00007fff770e726f _pthread_start + 70 18 libsystem_pthread.dylib 0x00007fff770e3415 thread_start + 13 Thread 47:: Java: ApplicationImpl pooled thread 5 0 libsystem_kernel.dylib 0x00007fff7702a282 swtch_pri + 10 1 libsystem_pthread.dylib 0x00007fff770e6ebe sched_yield + 11 2 libjvm.dylib 0x0000000104903c49 JVM_Yield + 87 3 ??? 0x000000010cef682c 0 + 4511983660 4 ??? 0x000000010bcd9534 0 + 4492989748 Thread 48:: Java: JobScheduler FJ pool 1/3 0 libsystem_kernel.dylib 0x00007fff7702d7de __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff770e7593 _pthread_cond_wait + 724 2 libjvm.dylib 0x0000000104a409e9 Parker::park(bool, long) + 527 3 libjvm.dylib 0x0000000104b3865f Unsafe_Park + 126 4 ??? 0x000000010c12992a 0 + 4497512746 5 ??? 0x000000010b79bffd 0 + 4487495677 6 ??? 0x000000010b79b7d0 0 + 4487493584 7 ??? 0x000000010b79bffd 0 + 4487495677 8 ??? 0x000000010b7944e7 0 + 4487464167 9 libjvm.dylib 0x00000001048c5b1a JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710 10 libjvm.dylib 0x00000001048c62be JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*) + 356 11 libjvm.dylib 0x00000001048c646a JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*) + 74 12 libjvm.dylib 0x00000001049040aa thread_entry(JavaThread*, Thread*) + 124 13 libjvm.dylib 0x0000000104b22335 JavaThread::thread_main_inner() + 155 14 libjvm.dylib 0x0000000104b239fa JavaThread::run() + 448 15 libjvm.dylib 0x0000000104a43ff2 java_start(Thread*) + 246 16 libsystem_pthread.dylib 0x00007fff770e4305 _pthread_body + 126 17 libsystem_pthread.dylib 0x00007fff770e726f _pthread_start + 70 18 libsystem_pthread.dylib 0x00007fff770e3415 thread_start + 13 Thread 49:: Java: ApplicationImpl pooled thread 6 0 libsystem_kernel.dylib 0x00007fff7702a282 swtch_pri + 10 1 libsystem_pthread.dylib 0x00007fff770e6ebe sched_yield + 11 2 libjvm.dylib 0x0000000104903c49 JVM_Yield + 87 3 ??? 0x000000010cef682c 0 + 4511983660 4 ??? 0x000000010bcd9534 0 + 4492989748 Thread 50:: Java: ApplicationImpl pooled thread 7 0 libsystem_kernel.dylib 0x00007fff7702d7de __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff770e7593 _pthread_cond_wait + 724 2 libjvm.dylib 0x0000000104a409e9 Parker::park(bool, long) + 527 3 libjvm.dylib 0x0000000104b3865f Unsafe_Park + 126 4 ??? 0x000000010c12992a 0 + 4497512746 5 ??? 0x000000010c8ddbc4 0 + 4505590724 6 ??? 0x000000010b79bffd 0 + 4487495677 7 ??? 0x000000010b79c042 0 + 4487495746 8 ??? 0x000000010b7944e7 0 + 4487464167 9 libjvm.dylib 0x00000001048c5b1a JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710 10 libjvm.dylib 0x00000001048c62be JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*) + 356 11 libjvm.dylib 0x00000001048c646a JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*) + 74 12 libjvm.dylib 0x00000001049040aa thread_entry(JavaThread*, Thread*) + 124 13 libjvm.dylib 0x0000000104b22335 JavaThread::thread_main_inner() + 155 14 libjvm.dylib 0x0000000104b239fa JavaThread::run() + 448 15 libjvm.dylib 0x0000000104a43ff2 java_start(Thread*) + 246 16 libsystem_pthread.dylib 0x00007fff770e4305 _pthread_body + 126 17 libsystem_pthread.dylib 0x00007fff770e726f _pthread_start + 70 18 libsystem_pthread.dylib 0x00007fff770e3415 thread_start + 13 Thread 51:: Java: ApplicationImpl pooled thread 8 0 libsystem_kernel.dylib 0x00007fff7702d7de __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff770e7593 _pthread_cond_wait + 724 2 libjvm.dylib 0x0000000104a409e9 Parker::park(bool, long) + 527 3 libjvm.dylib 0x0000000104b3865f Unsafe_Park + 126 4 ??? 0x000000010c12992a 0 + 4497512746 5 ??? 0x000000010c8ddbc4 0 + 4505590724 6 ??? 0x000000010b79bffd 0 + 4487495677 7 ??? 0x000000010b79c042 0 + 4487495746 8 ??? 0x000000010b7944e7 0 + 4487464167 9 libjvm.dylib 0x00000001048c5b1a JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710 10 libjvm.dylib 0x00000001048c62be JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*) + 356 11 libjvm.dylib 0x00000001048c646a JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*) + 74 12 libjvm.dylib 0x00000001049040aa thread_entry(JavaThread*, Thread*) + 124 13 libjvm.dylib 0x0000000104b22335 JavaThread::thread_main_inner() + 155 14 libjvm.dylib 0x0000000104b239fa JavaThread::run() + 448 15 libjvm.dylib 0x0000000104a43ff2 java_start(Thread*) + 246 16 libsystem_pthread.dylib 0x00007fff770e4305 _pthread_body + 126 17 libsystem_pthread.dylib 0x00007fff770e726f _pthread_start + 70 18 libsystem_pthread.dylib 0x00007fff770e3415 thread_start + 13 Thread 52:: Java: ApplicationImpl pooled thread 9 0 libsystem_kernel.dylib 0x00007fff7702d3e6 __recvfrom + 10 1 libnet.dylib 0x000000010a47fa68 NET_Read + 152 2 libnet.dylib 0x000000010a47e83f Java_java_net_SocketInputStream_socketRead0 + 624 3 ??? 0x000000010b7ac3a7 0 + 4487562151 4 ??? 0x000000010b79ba40 0 + 4487494208 5 ??? 0x000000010b79ba40 0 + 4487494208 6 ??? 0x000000010b79ba40 0 + 4487494208 7 ??? 0x000000010cfde0c8 0 + 4512932040 Thread 53:: Java: ApplicationImpl pooled thread 10 0 libsystem_kernel.dylib 0x00007fff7702d7de __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff770e7593 _pthread_cond_wait + 724 2 libjvm.dylib 0x0000000104a409e9 Parker::park(bool, long) + 527 3 libjvm.dylib 0x0000000104b3865f Unsafe_Park + 126 4 ??? 0x000000010c12992a 0 + 4497512746 5 ??? 0x000000010d6f9cbc 0 + 4520385724 6 ??? 0x000000010b79bffd 0 + 4487495677 7 ??? 0x000000010b79c042 0 + 4487495746 8 ??? 0x000000010b7944e7 0 + 4487464167 9 libjvm.dylib 0x00000001048c5b1a JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710 10 libjvm.dylib 0x00000001048c62be JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*) + 356 11 libjvm.dylib 0x00000001048c646a JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*) + 74 12 libjvm.dylib 0x00000001049040aa thread_entry(JavaThread*, Thread*) + 124 13 libjvm.dylib 0x0000000104b22335 JavaThread::thread_main_inner() + 155 14 libjvm.dylib 0x0000000104b239fa JavaThread::run() + 448 15 libjvm.dylib 0x0000000104a43ff2 java_start(Thread*) + 246 16 libsystem_pthread.dylib 0x00007fff770e4305 _pthread_body + 126 17 libsystem_pthread.dylib 0x00007fff770e726f _pthread_start + 70 18 libsystem_pthread.dylib 0x00007fff770e3415 thread_start + 13 Logical CPU: 0 Error Code: 0x00000000 Trap Number: 221 External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 113 thread_create: 0 thread_set_state: 0 VM Region Summary: ReadOnly portion of Libraries: Total=426.1M resident=0K(0%) swapped_out_or_unallocated=426.1M(100%) Writable regions: Total=828.4M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=828.4M(100%) VIRTUAL REGION REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= ATS (font support) 32.0M 6 ATS (font support) (reserved) 4K 2 reserved VM address space (unallocated) Accelerate framework 384K 4 Activity Tracing 256K 2 CG backing stores 1056K 4 CG image 336K 5 CoreAnimation 588K 17 CoreGraphics 8K 2 CoreImage 24K 3 CoreUI image data 1656K 16 CoreUI image file 516K 8 Dispatch continuations 8192K 2 Foundation 4K 2 Image IO 256K 2 Kernel Alloc Once 8K 2 MALLOC 199.9M 89 MALLOC guard page 32K 8 Memory Tag 242 12K 2 OpenGL GLSL 128K 3 STACK GUARD 820K 78 Stack 83.6M 78 Stack Guard 56.2M 65 VM_ALLOCATE 2.1G 98 VM_ALLOCATE (reserved) 46.1M 3 reserved VM address space (unallocated) __DATA 28.9M 289 __FONT_DATA 4K 2 __GLSLBUILTINS 5176K 2 __LINKEDIT 220.3M 27 __TEXT 205.8M 288 __UNICODE 564K 2 mapped file 1.7G 835 shared memory 676K 14 =========== ======= ======= TOTAL 4.7G 1928 TOTAL, minus reserved VM space 4.7G 1928 Model: MacBookAir8,1, BootROM 220.240.2.0.0 (iBridge: 16.16.3133.0.0,0), 2 processors, Intel Core i5, 1.6 GHz, 8 GB, SMC Graphics: kHW_IntelUHDGraphics617Item, Intel UHD Graphics 617, Built-In Memory Module: BANK 0/DIMM0, 4 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C3531324D3634443450512D3039 Memory Module: BANK 1/DIMM0, 4 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C3531324D3634443450512D3039 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x843), wl0: Oct 11 2018 22:36:55 version 9.141.4.0.32.6.23 FWID 01-3d163180 Bluetooth: Version 6.0.10f1, 3 services, 27 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en0 USB Device: USB 3.0 Bus USB Device: iBridge Bus USB Device: Apple Internal Keyboard / Trackpad USB Device: Headset USB Device: iBridge ALS USB Device: iBridge FaceTime HD Camera (Built-in) USB Device: iBridge Thunderbolt Bus: MacBook Air, Apple Inc., 34.6 用idea里MacOS下的idea打开,控制台输出的 2019-07-02 09:45:52.042 idea[1732:22393] allVms required 1.8*,1.8+ 2019-07-02 09:45:52.046 idea[1732:22396] Value of IDEA_VM_OPTIONS is (null) 2019-07-02 09:45:52.046 idea[1732:22396] fullFileName is: /Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions 2019-07-02 09:45:52.046 idea[1732:22396] fullFileName exists: /Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions 2019-07-02 09:45:52.046 idea[1732:22396] Processing VMOptions file at /Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions 2019-07-02 09:45:52.047 idea[1732:22396] Done thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: ()', libcore/result.rs:945:5 note: Run with `RUST_BACKTRACE=1` for a backtrace. Abort trap: 6 logout Saving session... ...saving history...truncating history files... ...completed.
SWT Designer jre 错误
<p>点击一个在MyEclipse里点击appliaction Window程序的Designer时候出现这个错误:You run Eclipse under JVM version 1.5.0_11,but Java project requires at least 1.6,so Designer can not be used.要改eclipse运行使用的jre吗?我在eclipse.ini这样改了,但不管用,而且,关键是之前我还用的好好的,今天打开MyClipse就不能用swt designer编辑了,why?</p> <p> <img src="http://hi.baidu.com/enilu/album/item/dec7b7f04948018da50f5225.html" height="195" alt="&#36825;&#26159;&#38169;&#35823;&#22270;" style="margin: 1px; border: black 1px solid;" width="721" /></p> <p>图片好像弄不上啊晕</p>
nginx 反向代理三个本地tomcat 负载均衡配置 无法加载js css 图片等 也不报错
打开速度非常慢,到最后js css无法加载是什么问题 我的项目是ssh+jquery+easyui的 单独访问tomcat完全正常 访问nginx就这样了 。求大神指点啊 ![访问之后的页面,所有js css等都加载不出来](https://img-ask.csdn.net/upload/201503/19/1426745491_495484.png) ![tomcat访问是这样的](https://img-ask.csdn.net/upload/201503/19/1426745533_580775.png) 访问webapp根目录是可以的 我的页面都是在web-inf目录下的貌似不行 ![图片说明](https://img-ask.csdn.net/upload/201503/19/1426746884_806301.png) ![图片说明](https://img-ask.csdn.net/upload/201503/19/1426746915_887499.png) nginx配置如下: ``` #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" ' # '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; include gzip.conf; #gzip on; #weight=1 upstream tomcat1 { server localhost:7777; server localhost:7778; server localhost:7779; } server { listen 80; server_name localhost; charset utf-8; #access_log logs/host.access.log main; location / { root html; index index.html index.htm index.jsp; proxy_pass http://tomcat1; proxy_set_header X-Real-IP $remote_addr; client_max_body_size 100m; } location ~ .*.jsp$ { index index.jsp; proxy_pass http://tomcat1; } #location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { #expires 30d; #} #location ~ .*\.(js|css)?$ { #expires 1h; #} #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # #location ~ \.php$ { # root html; # fastcgi_pass 127.0.0.1:9000; # fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # include fastcgi_params; #} # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} } # another virtual host using mix of IP-, name-, and port-based configuration # #server { # listen 8000; # listen somename:8080; # server_name somename alias another.alias; # location / { # root html; # index index.html index.htm; # } #} # HTTPS server # #server { # listen 443 ssl; # server_name localhost; # ssl_certificate cert.pem; # ssl_certificate_key cert.key; # ssl_session_cache shared:SSL:1m; # ssl_session_timeout 5m; # ssl_ciphers HIGH:!aNULL:!MD5; # ssl_prefer_server_ciphers on; # location / { # root html; # index index.html index.htm; # } #} } ``` tomcat配置如下: 全部都一样端口依次是7777,7778,7779 ``` <?xml version='1.0' encoding='utf-8'?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!-- Note: A "Server" is not itself a "Container", so you may not define subcomponents such as "Valves" at this level. Documentation at /docs/config/server.html --> <Server port="9001" shutdown="SHUTDOWN"> <!-- Security listener. Documentation at /docs/config/listeners.html <Listener className="org.apache.catalina.security.SecurityListener" /> --> <!--APR library loader. Documentation at /docs/apr.html --> <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --> <Listener className="org.apache.catalina.core.JasperListener" /> <!-- Prevent memory leaks due to use of particular java/javax APIs--> <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> <!-- Global JNDI resources Documentation at /docs/jndi-resources-howto.html --> <GlobalNamingResources> <!-- Editable user database that can also be used by UserDatabaseRealm to authenticate users --> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <!-- A "Service" is a collection of one or more "Connectors" that share a single "Container" Note: A "Service" is not itself a "Container", so you may not define subcomponents such as "Valves" at this level. Documentation at /docs/config/service.html --> <Service name="Catalina"> <!--The connectors can use a shared executor, you can define one or more named thread pools--> <!-- <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="150" minSpareThreads="4"/> --> <!-- A "Connector" represents an endpoint by which requests are received and responses are returned. Documentation at : Java HTTP Connector: /docs/config/http.html (blocking & non-blocking) Java AJP Connector: /docs/config/ajp.html APR (HTTP/AJP) Connector: /docs/apr.html Define a non-SSL HTTP/1.1 Connector on port 8080 --> <Connector port="7777" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="9443" URIEncoding="UTF-8"/> <!-- A "Connector" using the shared thread pool--> <!-- <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> --> <!-- Define a SSL HTTP/1.1 Connector on port 8443 This connector uses the BIO implementation that requires the JSSE style configuration. When using the APR/native implementation, the OpenSSL style configuration is required as described in the APR/native documentation --> <!-- <Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" maxThreads="150" SSLEnabled="true" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" /> --> <!-- Define an AJP 1.3 Connector on port 8009 --> <Connector port="9009" protocol="AJP/1.3" redirectPort="9443" /> <!-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). Documentation at /docs/config/engine.html --> <!-- You should set jvmRoute to support load-balancing via AJP ie : <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1"> --> <Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat1"> <!--For clustering, please take a look at documentation at: /docs/cluster-howto.html (simple how to) /docs/config/cluster.html (reference documentation) --> <!-- <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/> --> <!-- Use the LockOutRealm to prevent attempts to guess user passwords via a brute-force attack --> <Realm className="org.apache.catalina.realm.LockOutRealm"> <!-- This Realm uses the UserDatabase configured in the global JNDI resources under the key "UserDatabase". Any edits that are performed against this UserDatabase are immediately available for use by the Realm. --> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> </Realm> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> --> <!-- Access log processes all example. Documentation at: /docs/config/valve.html Note: The pattern used is equivalent to using pattern="common" --> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h %l %u %t &quot;%r&quot; %s %b" /> </Host> </Engine> </Service> </Server> ```
动态规划入门到熟悉,看不懂来打我啊
持续更新。。。。。。 2.1斐波那契系列问题 2.2矩阵系列问题 2.3跳跃系列问题 3.1 01背包 3.2 完全背包 3.3多重背包 3.4 一些变形选讲 2.1斐波那契系列问题 在数学上,斐波纳契数列以如下被以递归的方法定义:F(0)=0,F(1)=1, F(n)=F(n-1)+F(n-2)(n&gt;=2,n∈N*)根据定义,前十项为1, 1, 2, 3...
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私...
对计算机专业来说学历真的重要吗?
我本科学校是渣渣二本,研究生学校是985,现在毕业五年,校招笔试、面试,社招面试参加了两年了,就我个人的经历来说下这个问题。 这篇文章很长,但绝对是精华,相信我,读完以后,你会知道学历不好的解决方案,记得帮我点赞哦。 先说结论,无论赞不赞同,它本质就是这样:对于技术类工作而言,学历五年以内非常重要,但有办法弥补。五年以后,不重要。 目录: 张雪峰讲述的事实 我看到的事实 为什么会这样 ...
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
Python 植物大战僵尸代码实现(2):植物卡片选择和种植
这篇文章要介绍的是: - 上方植物卡片栏的实现。 - 点击植物卡片,鼠标切换为植物图片。 - 鼠标移动时,判断当前在哪个方格中,并显示半透明的植物作为提示。
防劝退!数据结构和算法难理解?可视化动画带你轻松透彻理解!
大家好,我是 Rocky0429,一个连数据结构和算法都不会的蒟蒻… 学过数据结构和算法的都知道这玩意儿不好学,没学过的经常听到这样的说法还没学就觉得难,其实难吗?真难! 难在哪呢?当年我还是个小蒟蒻,初学数据结构和算法的时候,在忍着枯燥看完定义原理,之后想实现的时候,觉得它们的过程真的是七拐八绕,及其难受。 在简单的链表、栈和队列这些我还能靠着在草稿上写写画画理解过程,但是到了数论、图...
【搞定 Java 并发面试】面试最常问的 Java 并发基础常见面试题总结!
本文为 SnailClimb 的原创,目前已经收录自我开源的 JavaGuide 中(61.5 k Star!【Java学习 面试指南】 一份涵盖大部分Java程序员所需要掌握的核心知识。欢迎 Star!)。 另外推荐一篇原创:终极推荐!可能是最适合你的Java学习路线 方法 网站 书籍推荐! Java 并发基础常见面试题总结 1. 什么是线程和进程? 1.1. 何为进程? 进程是程...
西游记团队中如果需要裁掉一个人,会先裁掉谁?
2019年互联网寒冬,大批企业开始裁员,下图是网上流传的一张截图: 裁员不可避免,那如何才能做到不管大环境如何变化,自身不受影响呢? 我们先来看一个有意思的故事,如果西游记取经团队需要裁员一名,会裁掉谁呢,为什么? 西游记团队组成: 1.唐僧 作为团队teamleader,有很坚韧的品性和极高的原则性,不达目的不罢休,遇到任何问题,都没有退缩过,又很得上司支持和赏识(直接得到唐太宗的任命,既给
shell脚本:备份数据库、代码上线
备份MySQL数据库 场景: 一台MySQL服务器,跑着5个数据库,在没有做主从的情况下,需要对这5个库进行备份 需求: 1)每天备份一次,需要备份所有的库 2)把备份数据存放到/data/backup/下 3)备份文件名称格式示例:dbname-2019-11-23.sql 4)需要对1天以前的所有sql文件压缩,格式为gzip 5)本地数据保留1周 6)需要把备份的数据同步到远程备份中心,假如...
iOS Bug 太多,苹果终于坐不住了!
开源的 Android 和闭源的 iOS,作为用户的你,更偏向哪一个呢? 整理 | 屠敏 出品 | CSDN(ID:CSDNnews) 毋庸置疑,当前移动设备操作系统市场中,Android 和 iOS 作为两大阵营,在相互竞争的同时不断演进。不过一直以来,开源的 Android 吸引了无数的手机厂商涌入其中,为其生态带来了百花齐放的盛景,但和神秘且闭源的 iOS 系统相比,不少网友...
神经⽹络可以计算任何函数的可视化证明
《Neural Networks and Deep Learning》读书笔记第四篇本章其实和前面章节的关联性不大,所以大可将本章作为小短文来阅读,当然基本的深度学习基础还是要有的。主要介绍了神经⽹络拥有的⼀种普遍性,比如说不管目标函数是怎样的,神经网络总是能够对任何可能的输入,其值(或者说近似值)是网络的输出,哪怕是多输入和多输出也是如此,我们大可直接得出一个结论:不论我们想要计算什么样的函数,...
聊聊C语言和指针的本质
坐着绿皮车上海到杭州,24块钱,很宽敞,在火车上非正式地聊几句。 很多编程语言都以 “没有指针” 作为自己的优势来宣传,然而,对于C语言,指针却是与生俱来的。 那么,什么是指针,为什么大家都想避开指针。 很简单, 指针就是地址,当一个地址作为一个变量存在时,它就被叫做指针,该变量的类型,自然就是指针类型。 指针的作用就是,给出一个指针,取出该指针指向地址处的值。为了理解本质,我们从计算机模型说起...
为什么你学不过动态规划?告别动态规划,谈谈我的经验
动态规划难吗?说实话,我觉得很难,特别是对于初学者来说,我当时入门动态规划的时候,是看 0-1 背包问题,当时真的是一脸懵逼。后来,我遇到动态规划的题,看的懂答案,但就是自己不会做,不知道怎么下手。就像做递归的题,看的懂答案,但下不了手,关于递归的,我之前也写过一篇套路的文章,如果对递归不大懂的,强烈建议看一看:为什么你学不会递归,告别递归,谈谈我的经验 对于动态规划,春招秋招时好多题都会用到动态...
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外...
字节跳动面试官这样问消息队列:分布式事务、重复消费、顺序消费,我整理了一下
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式和人才交流群,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸...
如何安装 IntelliJ IDEA 最新版本——详细教程
IntelliJ IDEA 简称 IDEA,被业界公认为最好的 Java 集成开发工具,尤其在智能代码助手、代码自动提示、代码重构、代码版本管理(Git、SVN、Maven)、单元测试、代码分析等方面有着亮眼的发挥。IDEA 产于捷克,开发人员以严谨著称的东欧程序员为主。IDEA 分为社区版和付费版两个版本。 我呢,一直是 Eclipse 的忠实粉丝,差不多十年的老用户了。很早就接触到了 IDEA...
面试还搞不懂redis,快看看这40道面试题(含答案和思维导图)
Redis 面试题 1、什么是 Redis?. 2、Redis 的数据类型? 3、使用 Redis 有哪些好处? 4、Redis 相比 Memcached 有哪些优势? 5、Memcache 与 Redis 的区别都有哪些? 6、Redis 是单进程单线程的? 7、一个字符串类型的值能存储最大容量是多少? 8、Redis 的持久化机制是什么?各自的优缺点? 9、Redis 常见性...
大学四年自学走来,这些珍藏的「实用工具/学习网站」我全贡献出来了
知乎高赞:文中列举了互联网一线大厂程序员都在用的工具集合,涉及面非常广,小白和老手都可以进来看看,或许有新收获。
为什么要推荐大家学习字节码?
配套视频: 为什么推荐大家学习Java字节码 https://www.bilibili.com/video/av77600176/ 一、背景 本文主要探讨:为什么要学习 JVM 字节码? 可能很多人会觉得没必要,因为平时开发用不到,而且不学这个也没耽误学习。 但是这里分享一点感悟,即人总是根据自己已经掌握的知识和技能来解决问题的。 这里有个悖论,有时候你觉得有些技术没用恰恰是...
互联网公司的裁员,能玩出多少种花样?
裁员,也是一门学问,可谓博大精深!以下,是互联网公司的裁员的多种方法:-正文开始-135岁+不予续签的理由:千禧一代网感更强。95后不予通过试用期的理由:已婚已育员工更有责任心。2通知接下来要过苦日子,让一部分不肯同甘共苦的员工自己走人,以“兄弟”和“非兄弟”来区别员工。3强制996。员工如果平衡不了工作和家庭,可在离婚或离职里二选一。4不布置任何工作,但下班前必须提交千字工作日报。5不给活干+...
【超详细分析】关于三次握手与四次挥手面试官想考我们什么?
在面试中,三次握手和四次挥手可以说是问的最频繁的一个知识点了,我相信大家也都看过很多关于三次握手与四次挥手的文章,今天的这篇文章,重点是围绕着面试,我们应该掌握哪些比较重要的点,哪些是比较被面试官给问到的,我觉得如果你能把我下面列举的一些点都记住、理解,我想就差不多了。 三次握手 当面试官问你为什么需要有三次握手、三次握手的作用、讲讲三次三次握手的时候,我想很多人会这样回答: 首先很多人会先讲下握...
新程序员七宗罪
当我发表这篇文章《为什么每个工程师都应该开始考虑开发中的分析和编程技能呢?》时,我从未想到它会对读者产生如此积极的影响。那些想要开始探索编程和数据科学领域的人向我寻求建议;还有一些人问我下一篇文章的发布日期;还有许多人询问如何顺利过渡到这个职业。我非常鼓励大家继续分享我在这个旅程的经验,学习,成功和失败,以帮助尽可能多的人过渡到一个充满无数好处和机会的职业生涯。亲爱的读者,谢谢你。 -罗伯特。 ...
活到老,学到老,程序员也该如此
全文共2763字,预计学习时长8分钟 图片来源:Pixabay 此前,“网传阿里巴巴要求尽快实现P8全员35周岁以内”的消息闹得沸沸扬扬。虽然很快被阿里辟谣,但苍蝇不叮无缝的蛋,无蜜不招彩蝶蜂。消息从何而来?真相究竟怎样?我们无从而知。我们只知道一个事实:不知从何时开始,程序猿也被划在了“吃青春饭”行业之列。 饱受“996ICU”摧残后,好不容易“头秃了变强了”,即将步入为“高...
Vue快速实现通用表单验证
本文开篇第一句话,想引用鲁迅先生《祝福》里的一句话,那便是:“我真傻,真的,我单单知道后端整天都是CRUD,我没想到前端整天都是Form表单”。这句话要从哪里说起呢?大概要从最近半个月的“全栈工程师”说起。项目上需要做一个城市配载的功能,顾名思义,就是通过框选和拖拽的方式在地图上完成配载。博主选择了前后端分离的方式,在这个过程中发现:首先,只要有依赖jQuery的组件,譬如Kendoui,即使使用...
2019年Spring Boot面试都问了什么?快看看这22道面试题!
Spring Boot 面试题 1、什么是 Spring Boot? 2、Spring Boot 有哪些优点? 3、什么是 JavaConfig? 4、如何重新加载 Spring Boot 上的更改,而无需重新启动服务器? 5、Spring Boot 中的监视器是什么? 6、如何在 Spring Boot 中禁用 Actuator 端点安全性? 7、如何在自定义端口上运行 Sprin...
【图解】记一次手撕算法面试:字节跳动的面试官把我四连击了
字节跳动这家公司,应该是所有秋招的公司中,对算法最重视的一个了,每次面试基本都会让你手撕算法,今天这篇文章就记录下当时被问到的几个算法题,并且每个算法题我都详细着给出了最优解,下面再现当时的面试场景。看完一定让你有所收获 一、小牛试刀:有效括号 大部分情况下,面试官都会问一个不怎么难的问题,不过你千万别太开心,因为这道题往往可以拓展出更多有难度的问题,或者一道题看起来很简单,但是给出最优解,确实很...
关于裁员几点看法及建议
最近网易裁员事件引起广泛关注,昨天网易针对此事,也发了声明,到底谁对谁错,孰是孰非?我们作为吃瓜观众实在是知之甚少,所以不敢妄下定论。身处软件开发这个行业,近一两年来,对...
面试官:关于Java性能优化,你有什么技巧
通过使用一些辅助性工具来找到程序中的瓶颈,然后就可以对瓶颈部分的代码进行优化。 一般有两种方案:即优化代码或更改设计方法。我们一般会选择后者,因为不去调用以下代码要比调用一些优化的代码更能提高程序的性能。而一个设计良好的程序能够精简代码,从而提高性能。 下面将提供一些在JAVA程序的设计和编码中,为了能够提高JAVA程序的性能,而经常采用的一些方法和技巧。 1.对象的生成和大小的调整。 J...
【图解算法面试】记一次面试:说说游戏中的敏感词过滤是如何实现的?
版权声明:本文为苦逼的码农原创。未经同意禁止任何形式转载,特别是那些复制粘贴到别的平台的,否则,必定追究。欢迎大家多多转发,谢谢。 小秋今天去面试了,面试官问了一个与敏感词过滤算法相关的问题,然而小秋对敏感词过滤算法一点也没听说过。于是,有了下下事情的发生… 面试官开怼 面试官:玩过王者荣耀吧?了解过敏感词过滤吗?,例如在游戏里,如果我们发送“你在干嘛?麻痹演员啊你?”,由于“麻痹”是一个敏感词,...
程序员需要了解的硬核知识之汇编语言(一)
之前的系列文章从 CPU 和内存方面简单介绍了一下汇编语言,但是还没有系统的了解一下汇编语言,汇编语言作为第二代计算机语言,会用一些容易理解和记忆的字母,单词来代替一个特定的指令,作为高级编程语言的基础,有必要系统的了解一下汇编语言,那么本篇文章希望大家跟我一起来了解一下汇编语言。 汇编语言和本地代码 我们在之前的文章中探讨过,计算机 CPU 只能运行本地代码(机器语言)程序,用 C 语言等高级语...
GitHub 标星 1.6w+,我发现了一个宝藏项目,作为编程新手有福了!
大家好,我是 Rocky0429,一个最近老在 GitHub 上闲逛的蒟蒻… 特别惭愧的是,虽然我很早就知道 GitHub,但是学会逛 GitHub 的时间特别晚。当时一方面是因为菜,看着这种全是英文的东西难受,不知道该怎么去玩,另一方面是一直在搞 ACM,没有做一些工程类的项目,所以想当然的以为和 GitHub 也没什么关系(当然这种想法是错误的)。 后来自己花了一个星期看完了 Pyt...
java知识体系整理,学会了,月入过万不是梦
欢迎关注个人公众号:程序猿学社 前言: 一转眼,工作4年了,正式写博客也有一年多了,之前就有整理和总结的习惯,只是都记录在有道云,感觉知识点都是很凌乱,花时间系统整理下,该文会一直同步更新,有不足之处,希望各位同行指正,既然,选择做技术这行,就得有分享的精神,而不是抱着别人会超过你的心理。希望各位博友们互相交流,互相进步。 目录 java系统学习 小白也能...
2020年去一线大厂面试先过SSM框架源码这一关!
SSM框架介绍 (1)持久层(Mybatis):Dao层(mapper) DAO层:DAO层主要是做数据持久层的工作,负责与数据库进行联络的一些任务都封装在此。 DAO层的设计首先是设计DAO的接口。 然后在Spring的配置文件中定义此接口的实现类。 然后就可在模块中调用此接口来进行数据业务的处理,而不用关心此接口的具体实现类是哪个类,显得结构非常清晰。 DAO层的数据源配置,以及有...
教你一键快速生成后台代码,这样和测试小姐姐聊天的时间又多了
教你一键快速生成后台代码,咋们作为开发人员,应该把时间精力放在业务逻辑的实现上面。
Java程序员必备基础:内部类解析
前言 整理了一下内部类的相关知识,算是比较全,比较基础的,希望大家一起学习进步。 一、什么是内部类? 在Java中,可以将一个类的定义放在另外一个类的定义内部,这就是内部类。内部类本身就是类的一个属性,与其他属性 定义方式一致。 一个内部类的例子: public class Outer { private int radius = 1; public static int co...
相关热词 c# 时间比天数 c# oracle查询 c# 主动推送 事件 c# java 属性 c# 控制台 窗体 c# 静态类存值 c#矢量作图 c#窗体调用外部程式 c# enum是否合法 c# 如何卸载引用
立即提问