You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/04/24 09:13:17 UTC

[GitHub] [rocketmq] HHoflittlefish777 opened a new issue, #4202: about TransientStorePool

HHoflittlefish777 opened a new issue, #4202:
URL: https://github.com/apache/rocketmq/issues/4202

   In the class 'TransientStorePool',Rocketmq use native method mlock to lock memory,but when I clone Rocketmq and run in the Windows  10 environment,it report error message as follows:Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'mlock'.I guess there is no mlock method in msvcrt.dll,so I use tool to test it,there did not have mlock method!And others computer have no such method ,Is something error in my  msvcrt.dll or in the Rocketmq code?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] HHoflittlefish777 commented on issue #4202: about TransientStorePool

Posted by GitBox <gi...@apache.org>.
HHoflittlefish777 commented on issue #4202:
URL: https://github.com/apache/rocketmq/issues/4202#issuecomment-1108009394

   It's strange,I can't run it in my window ,also my friend,and the contributor name HScarb replied me "I tested this method, it worked on Linux and dit not work on Windows."Do some window has the c method mlock some haven't?it's confused.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] HScarb commented on issue #4202: about TransientStorePool

Posted by GitBox <gi...@apache.org>.
HScarb commented on issue #4202:
URL: https://github.com/apache/rocketmq/issues/4202#issuecomment-1107979254

   I tested this method, it worked on Linux and dit not work on Windows.
   ```java
   LibC INSTANCE = (LibC) Native.loadLibrary(Platform.isWindows() ? "msvcrt" : "c", LibC.class);
   ```
   This is a default JNA usage of C library for binding C functions to java interface, but `mlock` and `madvise` not exist on windows


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] github-actions[bot] commented on issue #4202: about TransientStorePool

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4202:
URL: https://github.com/apache/rocketmq/issues/4202#issuecomment-1585868489

   This issue is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] lwclover commented on issue #4202: about TransientStorePool

Posted by GitBox <gi...@apache.org>.
lwclover commented on issue #4202:
URL: https://github.com/apache/rocketmq/issues/4202#issuecomment-1108003894

   > java.lang.UnsatisfiedLinkError
   
   `LibC INSTANCE = (LibC) Native.loadLibrary(Platform.isWindows() ? "msvcrt" : "c", LibC.class);`
   
   My os is Windows 10. The line can be executed normally.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] leeveel commented on issue #4202: about TransientStorePool

Posted by GitBox <gi...@apache.org>.
leeveel commented on issue #4202:
URL: https://github.com/apache/rocketmq/issues/4202#issuecomment-1109256809

   windows 上面应该是kernel32.dll的VirtualLock才对吧?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] djl394922860 commented on issue #4202: about TransientStorePool

Posted by GitBox <gi...@apache.org>.
djl394922860 commented on issue #4202:
URL: https://github.com/apache/rocketmq/issues/4202#issuecomment-1151798185

   mark this question , wait for answer  


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] hzh0425 commented on issue #4202: about TransientStorePool

Posted by GitBox <gi...@apache.org>.
hzh0425 commented on issue #4202:
URL: https://github.com/apache/rocketmq/issues/4202#issuecomment-1108010245

   I have tested this method on both win10 and win11, but it doesn't work.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] hzh0425 commented on issue #4202: about TransientStorePool

Posted by GitBox <gi...@apache.org>.
hzh0425 commented on issue #4202:
URL: https://github.com/apache/rocketmq/issues/4202#issuecomment-1107828970

   可能该方法只在 linux 环境下支持?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] HHoflittlefish777 commented on issue #4202: about TransientStorePool

Posted by GitBox <gi...@apache.org>.
HHoflittlefish777 commented on issue #4202:
URL: https://github.com/apache/rocketmq/issues/4202#issuecomment-1107985045

   I agree with you,but this line of code'LibC INSTANCE = (LibC) Native.loadLibrary(Platform.isWindows() ? "msvcrt" : "c", LibC.class);' means it can work in the windows.If it can cause divergence,I think hava  a change in rocketmq is a good idea.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] zhouxinyu commented on issue #4202: about TransientStorePool

Posted by GitBox <gi...@apache.org>.
zhouxinyu commented on issue #4202:
URL: https://github.com/apache/rocketmq/issues/4202#issuecomment-1151837530

   mlock is a system call of Linux, it seems that the Windows platform has an alternative function: https://docs.microsoft.com/zh-cn/windows/win32/api/memoryapi/nf-memoryapi-virtuallock?redirectedfrom=MSDN


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] github-actions[bot] commented on issue #4202: about TransientStorePool

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4202:
URL: https://github.com/apache/rocketmq/issues/4202#issuecomment-1592146833

   This issue was closed because it has been inactive for 3 days since being marked as stale.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] lwclover commented on issue #4202: about TransientStorePool

Posted by GitBox <gi...@apache.org>.
lwclover commented on issue #4202:
URL: https://github.com/apache/rocketmq/issues/4202#issuecomment-1108004090

   > I agree with you,but this line of code'LibC INSTANCE = (LibC) Native.loadLibrary(Platform.isWindows() ? "msvcrt" : "c", LibC.class);' means it can work in the windows.If it can cause divergence,I think hava a change in rocketmq is a good idea.
   
   `LibC INSTANCE = (LibC) Native.loadLibrary(Platform.isWindows() ? "msvcrt" : "c", LibC.class);`
   
   My os is Windows 10. The line can be executed normally.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] HHoflittlefish777 commented on issue #4202: about TransientStorePool

Posted by GitBox <gi...@apache.org>.
HHoflittlefish777 commented on issue #4202:
URL: https://github.com/apache/rocketmq/issues/4202#issuecomment-1107830031

   如果只在在linux环境下支持,为什么LibC接口的第一行
   LibC INSTANCE = (LibC) Native.loadLibrary(Platform.isWindows() ? "msvcrt" : "c", LibC.class);


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] github-actions[bot] closed issue #4202: about TransientStorePool

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #4202: about TransientStorePool
URL: https://github.com/apache/rocketmq/issues/4202


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org