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

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

7个回答

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

楼主为什么要双击启动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

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

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

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

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

你看下你的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> ```
爬虫福利二 之 妹子图网MM批量下载
爬虫福利一:27报网MM批量下载    点击 看了本文,相信大家对爬虫一定会产生强烈的兴趣,激励自己去学习爬虫,在这里提前祝:大家学有所成! 目标网站:妹子图网 环境:Python3.x 相关第三方模块:requests、beautifulsoup4 Re:各位在测试时只需要将代码里的变量 path 指定为你当前系统要保存的路径,使用 python xxx.py 或IDE运行即可。
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、PDF搜索网站推荐 对于大部
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 顺便拉下票,我在参加csdn博客之星竞选,欢迎投票支持,每个QQ或者微信每天都可以投5票,扫二维码即可,http://m234140.nofollow.ax.
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入  假设现有4个人
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 欢迎 改进 留言。 演示地点跳到演示地点 html代码如下`&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;music&lt;/title&gt; &lt;meta charset="utf-8"&gt
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。 1. for - else 什么?不是 if 和 else 才
数据库优化 - SQL优化
前面一篇文章从实例的角度进行数据库优化,通过配置一些参数让数据库性能达到最优。但是一些“不好”的SQL也会导致数据库查询变慢,影响业务流程。本文从SQL角度进行数据库优化,提升SQL运行效率。 判断问题SQL 判断SQL是否有问题时可以通过两个表象进行判断: 系统级别表象 CPU消耗严重 IO等待严重 页面响应时间过长
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 c/c++ 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7
通俗易懂地给女朋友讲:线程池的内部原理
餐厅的约会 餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”我楞了一下,心里想女朋友今天是怎么了,怎么突然问出这么专业的问题,但做为一个专业人士在女朋友面前也不能露怯啊,想了一下便说:“我先给你讲讲我前同事老王的故事吧!” 大龄程序员老王 老王是一个已经北漂十多年的程序员,岁数大了,加班加不动了,升迁也无望,于是拿着手里
经典算法(5)杨辉三角
写在前面: 我是 扬帆向海,这个昵称来源于我的名字以及女朋友的名字。我热爱技术、热爱开源、热爱编程。技术是开源的、知识是共享的。 这博客是对自己学习的一点点总结及记录,如果您对 Java、算法 感兴趣,可以关注我的动态,我们一起学习。 用知识改变命运,让我们的家人过上更好的生活。 目录一、杨辉三角的介绍二、杨辉三角的算法思想三、代码实现1.第一种写法2.第二种写法 一、杨辉三角的介绍 百度
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹
面试官:你连RESTful都不知道我怎么敢要你?
面试官:了解RESTful吗? 我:听说过。 面试官:那什么是RESTful? 我:就是用起来很规范,挺好的 面试官:是RESTful挺好的,还是自我感觉挺好的 我:都挺好的。 面试官:… 把门关上。 我:… 要干嘛?先关上再说。 面试官:我说出去把门关上。 我:what ?,夺门而去 文章目录01 前言02 RESTful的来源03 RESTful6大原则1. C-S架构2. 无状态3.统一的接
为啥国人偏爱Mybatis,而老外喜欢Hibernate/JPA呢?
关于SQL和ORM的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行了一番讨论,感触还是有一些,于是就有了今天这篇文。 声明:本文不会下关于Mybatis和JPA两个持久层框架哪个更好这样的结论。只是摆事实,讲道理,所以,请各位看官勿喷。 一、事件起因 关于Mybatis和JPA孰优孰劣的问题,争论已经很多年了。一直也没有结论,毕竟每个人的喜好和习惯是大不相同的。我也看
SQL-小白最佳入门sql查询一
一 说明 如果是初学者,建议去网上寻找安装Mysql的文章安装,以及使用navicat连接数据库,以后的示例基本是使用mysql数据库管理系统; 二 准备前提 需要建立一张学生表,列分别是id,名称,年龄,学生信息;本示例中文章篇幅原因SQL注释略; 建表语句: CREATE TABLE `student` ( `id` int(11) NOT NULL AUTO_INCREMENT, `
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // dosho
【图解经典算法题】如何用一行代码解决约瑟夫环问题
约瑟夫环问题算是很经典的题了,估计大家都听说过,然后我就在一次笔试中遇到了,下面我就用 3 种方法来详细讲解一下这道题,最后一种方法学了之后保证让你可以让你装逼。 问题描述:编号为 1-N 的 N 个士兵围坐在一起形成一个圆圈,从编号为 1 的士兵开始依次报数(1,2,3…这样依次报),数到 m 的 士兵会被杀死出列,之后的士兵再从 1 开始报数。直到最后剩下一士兵,求这个士兵的编号。 1、方
致 Python 初学者
文章目录1. 前言2. 明确学习目标,不急于求成,不好高骛远3. 在开始学习 Python 之前,你需要做一些准备2.1 Python 的各种发行版2.2 安装 Python2.3 选择一款趁手的开发工具3. 习惯使用IDLE,这是学习python最好的方式4. 严格遵从编码规范5. 代码的运行、调试5. 模块管理5.1 同时安装了py2/py35.2 使用Anaconda,或者通过IDE来安装模
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,
程序员:我终于知道post和get的区别
IT界知名的程序员曾说:对于那些月薪三万以下,自称IT工程师的码农们,其实我们从来没有把他们归为我们IT工程师的队伍。他们虽然总是以IT工程师自居,但只是他们一厢情愿罢了。 此话一出,不知激起了多少(码农)程序员的愤怒,却又无可奈何,于是码农问程序员。 码农:你知道get和post请求到底有什么区别? 程序员:你看这篇就知道了。 码农:你月薪三万了? 程序员:嗯。 码农:你是怎么做到的? 程序员:
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
      11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1
程序员把地府后台管理系统做出来了,还有3.0版本!12月7号最新消息:已在开发中有github地址
第一幕:缘起 听说阎王爷要做个生死簿后台管理系统,我们派去了一个程序员…… 996程序员做的梦: 第一场:团队招募 为了应对地府管理危机,阎王打算找“人”开发一套地府后台管理系统,于是就在地府总经办群中发了项目需求。 话说还是中国电信的信号好,地府都是满格,哈哈!!! 经常会有外行朋友问:看某网站做的不错,功能也简单,你帮忙做一下? 而这次,面对这样的需求,这个程序员
网易云6亿用户音乐推荐算法
网易云音乐是音乐爱好者的集聚地,云音乐推荐系统致力于通过 AI 算法的落地,实现用户千人千面的个性化推荐,为用户带来不一样的听歌体验。 本次分享重点介绍 AI 算法在音乐推荐中的应用实践,以及在算法落地过程中遇到的挑战和解决方案。 将从如下两个部分展开: AI 算法在音乐推荐中的应用 音乐场景下的 AI 思考 从 2013 年 4 月正式上线至今,网易云音乐平台持续提供着:乐屏社区、UGC
【技巧总结】位运算装逼指南
位算法的效率有多快我就不说,不信你可以去用 10 亿个数据模拟一下,今天给大家讲一讲位运算的一些经典例子。不过,最重要的不是看懂了这些例子就好,而是要在以后多去运用位运算这些技巧,当然,采用位运算,也是可以装逼的,不信,你往下看。我会从最简单的讲起,一道比一道难度递增,不过居然是讲技巧,那么也不会太难,相信你分分钟看懂。 判断奇偶数 判断一个数是基于还是偶数,相信很多人都做过,一般的做法的代码如下
日均350000亿接入量,腾讯TubeMQ性能超过Kafka
整理 | 夕颜出品 | AI科技大本营(ID:rgznai100) 【导读】近日,腾讯开源动作不断,相继开源了分布式消息中间件TubeMQ,基于最主流的 OpenJDK8开发的
8年经验面试官详解 Java 面试秘诀
    作者 | 胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。   Java程序员准备和投递简历的实
面试官如何考察你的思维方式?
1.两种思维方式在求职面试中,经常会考察这种问题:北京有多少量特斯拉汽车? 某胡同口的煎饼摊一年能卖出多少个煎饼? 深圳有多少个产品经理? 一辆公交车里能装下多少个乒乓球? 一
so easy! 10行代码写个"狗屁不通"文章生成器
前几天,GitHub 有个开源项目特别火,只要输入标题就可以生成一篇长长的文章。背后实现代码一定很复杂吧,里面一定有很多高深莫测的机器学习等复杂算法不过,当我看了源代码之后这程序不到50
知乎高赞:中国有什么拿得出手的开源软件产品?(整理自本人原创回答)
知乎高赞:中国有什么拿得出手的开源软件产品? 在知乎上,有个问题问“中国有什么拿得出手的开源软件产品(在 GitHub 等社区受欢迎度较好的)?” 事实上,还不少呢~ 本人于2019.7.6进行了较为全面的 回答 - Bravo Yeung,获得该问题下回答中得最高赞(236赞和1枚专业勋章),对这些受欢迎的 Github 开源项目分类整理如下: 分布式计算、云平台相关工具类 1.SkyWalk
MySQL数据库总结
文章目录一、数据库简介二、MySQL数据类型(5.5版本)三、Sql语句(1)Sql语句简介(2)数据定义语言DDLcreate,alter,drop(3)数据操纵语言DMLupdate,insert,delete(4)数据控制语言DCLgrant,revoke(5)数据查询语言DQLselect(6)分组查询与分页查询group by,limit四、完整性约束(单表)五、多表查询六、MySQL数
记一次腾讯面试:进程之间究竟有哪些通信方式?如何通信? ---- 告别死记硬背
有一次面试的时候,被问到进程之间有哪些通信方式,不过由于之前没深入思考且整理过,说的并不好。想必大家也都知道进程有哪些通信方式,可是我猜很多人都是靠着”背“来记忆的,所以今天的这篇文章,讲给大家详细着讲解他们是如何通信的,让大家尽量能够理解他们之间的区别、优缺点等,这样的话,以后面试官让你举例子,你也能够顺手拈来。 1、管道 我们来看一条 Linux 的语句 netstat -tulnp | gr...
20行Python代码爬取王者荣耀全英雄皮肤
引言 王者荣耀大家都玩过吧,没玩过的也应该听说过,作为时下最火的手机MOBA游戏,咳咳,好像跑题了。我们今天的重点是爬取王者荣耀所有英雄的所有皮肤,而且仅仅使用20行Python代码即可完成。 准备工作 爬取皮肤本身并不难,难点在于分析,我们首先得得到皮肤图片的url地址,话不多说,我们马上来到王者荣耀的官网: 我们点击英雄资料,然后随意地选择一位英雄,接着F12打开调试台,找到英雄原皮肤的图片
走进高并发(二)Java并行程序基础
一、进程和线程 在操作系统这门课程中,对进程的定义是这样的: 进程是计算机中的程序关于某数据集合上的一次运行活动,是系统进行资源分配和调度的基本单位,是操作系统结构的基础。在早期面向进程设计的计算机结构中,进行是程序的基本执行实体;在当代面向线程设计的计算机结构中,进程是线程的容器。 上面的定义很完整,对进程进行了全方面的定义,但是貌似进程是看不见摸不着的一个东西,实际上,我们可以通过查看计算...
程序设计的5个底层逻辑,决定你能走多快
阿里妹导读:肉眼看计算机是由CPU、内存、显示器这些硬件设备组成,但大部分人从事的是软件开发工作。计算机底层原理就是连通硬件和软件的桥梁,理解计算机底层原理才能在程序设计这条路上越走越快,越走越轻松。从操作系统层面去理解高级编程语言的执行过程,会发现好多软件设计都是同一种套路,很多语言特性都依赖于底层机制,今天董鹏为你一一揭秘。 结合 CPU 理解一行 Java 代码是怎么执行的 根据冯·诺...
相关热词 c#处理浮点数 c# 生成字母数字随机数 c# 动态曲线 控件 c# oracle 开发 c#选择字体大小的控件 c# usb 批量传输 c#10进制转8进制 c#转base64 c# 科学计算 c#下拉列表获取串口
立即提问