Skip to content

Commit a951b34

Browse files
committed
Sync documentation of main branch
1 parent 18b08f4 commit a951b34

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

_versions/main/guides/security-openid-connect-client-reference.adoc

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,30 @@ public interface ProtectedResourceService {
551551

552552
or
553553

554+
[source,java]
555+
----
556+
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
557+
import io.quarkus.oidc.client.filter.OidcClientFilter;
558+
import io.smallrye.mutiny.Uni;
559+
import jakarta.ws.rs.GET;
560+
import jakarta.ws.rs.Path;
561+
562+
@RegisterRestClient
563+
@Path("/")
564+
public interface InformationService {
565+
566+
@OidcClientFilter
567+
@GET
568+
Uni<String> getUserName();
569+
570+
@OidcClientFilter
571+
@GET
572+
Uni<String> getPublicInformation();
573+
}
574+
----
575+
576+
or
577+
554578
[source,java]
555579
----
556580
import org.eclipse.microprofile.rest.client.annotation.RegisterProvider;
@@ -659,6 +683,28 @@ public interface ProtectedResourceService {
659683

660684
or
661685

686+
[source,java]
687+
----
688+
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
689+
import io.quarkus.oidc.client.filter.OidcClientFilter;
690+
import jakarta.ws.rs.GET;
691+
import jakarta.ws.rs.Path;
692+
693+
@RegisterRestClient
694+
@Path("/")
695+
public interface InformationService {
696+
697+
@OidcClientFilter
698+
@GET
699+
String getUserName();
700+
701+
@GET
702+
String getPublicInformation();
703+
}
704+
----
705+
706+
or
707+
662708
[source,java]
663709
----
664710
import org.eclipse.microprofile.rest.client.annotation.RegisterProvider;

_versions/main/guides/telemetry-micrometer.adoc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,28 @@ Chunks are the primary unit of memory allocation in Netty's arenas.
642642

643643
|===
644644

645+
==== Unpooled
646+
647+
This uses a utility class providing static methods to create new buffers directly and bypassing the pooling mechanism. The user must also release the allocated buffers.
648+
649+
[NOTE]
650+
====
651+
It has been https://github.com/quarkusio/quarkus/issues/50538[reported] that some libraries using the `UnpooledByteBufAllocator` might not release some heap buffers. This will not decrement the reported allocation even if memory is no longer reserved. This might lead to astronomical values in reported memory.
652+
====
653+
654+
==== Debugging
655+
656+
If high allocation values are reported, there are 2 ways to determine whether it’s a real memory leak:
657+
658+
* By enabling https://netty.io/wiki/reference-counted-objects.html#leak-detection-levels[leak detection], as documented by Netty. Example:
659+
660+
[source,bash]
661+
----
662+
java -Dio.netty.leakDetection.level=advanced ...
663+
----
664+
665+
* Inspect a memory dump from the application.
666+
645667
[[quarkus-extensions-using-micrometer]]
646668
=== List of Quarkus core extensions automatically instrumented with Micrometer
647669

0 commit comments

Comments
 (0)